2010-12-30 18:39:50 +01:00
|
|
|
|
|
|
|
|
2011-01-25 20:27:23 +01:00
|
|
|
TAG-$(CONFIG_SEABIOS_MASTER)=origin/master
|
2011-10-12 23:05:49 +02:00
|
|
|
TAG-$(CONFIG_SEABIOS_STABLE)=e66fb31eac3e6be6aaab548c229af9bb1ba55c33
|
2010-12-30 18:39:50 +01:00
|
|
|
|
2011-02-07 21:16:40 +01:00
|
|
|
unexport KCONFIG_AUTOCONFIG
|
2010-12-30 18:39:50 +01:00
|
|
|
|
2011-06-07 15:03:14 +02:00
|
|
|
all: build
|
2010-12-30 18:39:50 +01:00
|
|
|
|
2011-06-07 15:03:14 +02:00
|
|
|
seabios:
|
|
|
|
echo " Cloning SeaBIOS from Git"
|
|
|
|
git clone git://git.seabios.org/seabios.git
|
|
|
|
|
|
|
|
fetch: seabios
|
|
|
|
cd seabios; git show $(TAG-y) >/dev/null 2>&1 ; if [ $$? -ne 0 ]; \
|
|
|
|
then echo " Fetching new commits from the SeaBIOS git repo"; git fetch; fi
|
|
|
|
|
|
|
|
checkout: fetch
|
|
|
|
echo " Checking out SeaBIOS revision $(TAG-y)"
|
2011-02-07 21:16:40 +01:00
|
|
|
cd seabios; git checkout master; git branch -D coreboot 2>/dev/null; git checkout -b coreboot $(TAG-y)
|
|
|
|
|
|
|
|
config: checkout
|
|
|
|
echo " CONFIG SeaBIOS $(TAG-y)"
|
|
|
|
$(MAKE) -C seabios defconfig
|
|
|
|
echo "CONFIG_COREBOOT=y" >> seabios/.config
|
|
|
|
echo "CONFIG_DEBUG_SERIAL=y" >> seabios/.config
|
2011-10-12 23:05:49 +02:00
|
|
|
echo "CONFIG_DEBUG_SERIAL_PORT=0x3f8" >> seabios/.config
|
2011-02-07 21:16:40 +01:00
|
|
|
echo "CONFIG_COREBOOT_FLASH=y" >> seabios/.config
|
|
|
|
echo "CONFIG_LZMA=y" >> seabios/.config
|
|
|
|
echo "CONFIG_FLASH_FLOPPY=y" >> seabios/.config
|
|
|
|
echo "CONFIG_VGAHOOKS=y" >> seabios/.config
|
|
|
|
# This shows how to force a previously set .config option *off*
|
|
|
|
#echo "# CONFIG_SMBIOS is not set" >> seabios/.config
|
|
|
|
|
2011-06-07 15:03:14 +02:00
|
|
|
build: config
|
2011-02-07 21:16:40 +01:00
|
|
|
echo " MAKE SeaBIOS $(TAG-y)"
|
|
|
|
$(MAKE) -C seabios
|
2010-12-30 18:39:50 +01:00
|
|
|
|
|
|
|
clean:
|
2011-02-07 21:16:40 +01:00
|
|
|
test -d seabios && $(MAKE) -C seabios clean || exit 0
|
2010-12-30 18:39:50 +01:00
|
|
|
|
|
|
|
distclean:
|
|
|
|
rm -rf seabios
|
|
|
|
|
2011-06-07 15:03:14 +02:00
|
|
|
.PHONY: checkout config build clean distclean clone fetch
|