2011-01-25 20:27:23 +01:00
|
|
|
TAG-$(CONFIG_SEABIOS_MASTER)=origin/master
|
2013-03-02 18:27:05 +01:00
|
|
|
TAG-$(CONFIG_SEABIOS_STABLE)=88cb66ea542906ffff8a80ef397b9e3adbb33116
|
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
|
|
|
|
2012-01-21 19:34:22 +01:00
|
|
|
$(OUT)/seabios:
|
2011-06-07 15:03:14 +02:00
|
|
|
echo " Cloning SeaBIOS from Git"
|
2012-05-09 21:07:17 +02:00
|
|
|
git clone http://review.coreboot.org/p/seabios.git $(OUT)/seabios
|
2011-06-07 15:03:14 +02:00
|
|
|
|
2012-01-21 19:34:22 +01:00
|
|
|
fetch: $(OUT)/seabios
|
|
|
|
cd $(OUT)/seabios; git show $(TAG-y) >/dev/null 2>&1 ; if [ $$? -ne 0 ]; \
|
2011-06-07 15:03:14 +02:00
|
|
|
then echo " Fetching new commits from the SeaBIOS git repo"; git fetch; fi
|
|
|
|
|
|
|
|
checkout: fetch
|
|
|
|
echo " Checking out SeaBIOS revision $(TAG-y)"
|
2012-01-21 19:34:22 +01:00
|
|
|
cd $(OUT)/seabios; git checkout master; git branch -D coreboot 2>/dev/null; git checkout -b coreboot $(TAG-y)
|
2011-02-07 21:16:40 +01:00
|
|
|
|
|
|
|
config: checkout
|
|
|
|
echo " CONFIG SeaBIOS $(TAG-y)"
|
2012-01-21 19:34:22 +01:00
|
|
|
$(MAKE) -C $(OUT)/seabios defconfig OUT=$(OUT)/seabios/out/
|
|
|
|
echo "CONFIG_COREBOOT=y" >> $(OUT)/seabios/.config
|
2014-04-02 00:47:33 +02:00
|
|
|
ifeq ($(CONFIG_SEABIOS_THREAD_OPTIONROMS),y)
|
|
|
|
echo "CONFIG_THREAD_OPTIONROMS=y" >> $(OUT)/seabios/.config
|
|
|
|
endif
|
2012-01-21 19:34:22 +01:00
|
|
|
echo "CONFIG_DEBUG_SERIAL=y" >> $(OUT)/seabios/.config
|
|
|
|
echo "CONFIG_DEBUG_SERIAL_PORT=0x3f8" >> $(OUT)/seabios/.config
|
|
|
|
echo "CONFIG_COREBOOT_FLASH=y" >> $(OUT)/seabios/.config
|
|
|
|
echo "CONFIG_LZMA=y" >> $(OUT)/seabios/.config
|
|
|
|
echo "CONFIG_FLASH_FLOPPY=y" >> $(OUT)/seabios/.config
|
|
|
|
echo "CONFIG_VGAHOOKS=y" >> $(OUT)/seabios/.config
|
2014-04-02 00:47:33 +02:00
|
|
|
echo "CONFIG_DEBUG_COREBOOT=y" >> $(OUT)/seabios/.config
|
2011-02-07 21:16:40 +01:00
|
|
|
# This shows how to force a previously set .config option *off*
|
2012-01-21 19:34:22 +01:00
|
|
|
#echo "# CONFIG_SMBIOS is not set" >> $(OUT)/seabios/.config
|
2011-02-07 21:16:40 +01:00
|
|
|
|
2011-06-07 15:03:14 +02:00
|
|
|
build: config
|
2011-02-07 21:16:40 +01:00
|
|
|
echo " MAKE SeaBIOS $(TAG-y)"
|
2012-01-21 19:34:22 +01:00
|
|
|
$(MAKE) -C $(OUT)/seabios OUT=$(OUT)/seabios/out/
|
2010-12-30 18:39:50 +01:00
|
|
|
|
|
|
|
clean:
|
2012-01-21 19:34:22 +01:00
|
|
|
test -d $(OUT)/seabios && $(MAKE) -C $(OUT)/seabios clean OUT=$(OUT)/seabios/out/ || exit 0
|
2010-12-30 18:39:50 +01:00
|
|
|
|
|
|
|
distclean:
|
2012-01-21 19:34:22 +01:00
|
|
|
rm -rf $(OUT)/seabios
|
2010-12-30 18:39:50 +01:00
|
|
|
|
2011-06-07 15:03:14 +02:00
|
|
|
.PHONY: checkout config build clean distclean clone fetch
|