2011-01-25 20:27:23 +01:00
|
|
|
TAG-$(CONFIG_SEABIOS_MASTER)=origin/master
|
2014-02-02 11:23:26 +01:00
|
|
|
TAG-$(CONFIG_SEABIOS_STABLE)=96917a8ed761f017fc8c72ba3b9181fbac03ac59
|
2010-12-30 18:39:50 +01:00
|
|
|
|
2014-05-09 20:41:01 +02:00
|
|
|
unexport KCONFIG_AUTOHEADER
|
2011-02-07 21:16:40 +01:00
|
|
|
unexport KCONFIG_AUTOCONFIG
|
2014-05-09 20:41:01 +02:00
|
|
|
unexport KCONFIG_DEPENDENCIES
|
|
|
|
unexport KCONFIG_SPLITCONFIG
|
|
|
|
unexport KCONFIG_TRISTATE
|
|
|
|
unexport KCONFIG_NEGATIVES
|
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)"
|
2014-07-25 22:24:32 +02:00
|
|
|
echo "CONFIG_COREBOOT=y" > $(OUT)/seabios/.config
|
2014-07-25 22:33:49 +02:00
|
|
|
ifeq ($(CONFIG_CONSOLE_SERIAL),y)
|
2012-01-21 19:34:22 +01:00
|
|
|
echo "CONFIG_DEBUG_SERIAL=y" >> $(OUT)/seabios/.config
|
2014-07-25 22:33:49 +02:00
|
|
|
echo "CONFIG_DEBUG_SERIAL_PORT=$(CONFIG_TTYS0_BASE)" >> $(OUT)/seabios/.config
|
|
|
|
else
|
|
|
|
echo "# CONFIG_DEBUG_SERIAL is not set" >> $(OUT)/seabios/.config
|
|
|
|
endif
|
2014-07-25 22:24:32 +02:00
|
|
|
ifneq ($(CONFIG_SEABIOS_THREAD_OPTIONROMS),y)
|
|
|
|
echo "# CONFIG_THREAD_OPTIONROMS is not set" >> $(OUT)/seabios/.config
|
|
|
|
endif
|
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
|
2014-07-25 22:24:32 +02:00
|
|
|
$(MAKE) -C $(OUT)/seabios olddefconfig OUT=$(OUT)/seabios/out/
|
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
|