2011-01-25 20:27:23 +01:00
|
|
|
TAG-$(CONFIG_SEABIOS_MASTER)=origin/master
|
2014-09-13 12:43:45 +02:00
|
|
|
TAG-$(CONFIG_SEABIOS_STABLE)=e51488c5f8800a52ac5c8da7a31b85cca5cc95d2
|
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
|
|
|
|
2014-08-11 16:09:07 +02:00
|
|
|
seabios:
|
2011-06-07 15:03:14 +02:00
|
|
|
echo " Cloning SeaBIOS from Git"
|
2014-08-11 16:09:07 +02:00
|
|
|
git clone http://review.coreboot.org/p/seabios.git seabios
|
2011-06-07 15:03:14 +02:00
|
|
|
|
2014-08-11 16:09:07 +02:00
|
|
|
fetch: seabios
|
|
|
|
cd 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)"
|
2014-08-11 16:09:07 +02:00
|
|
|
cd 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-08-11 16:09:07 +02:00
|
|
|
echo "CONFIG_COREBOOT=y" > seabios/.config
|
2014-07-25 22:33:49 +02:00
|
|
|
ifeq ($(CONFIG_CONSOLE_SERIAL),y)
|
2014-08-11 16:09:07 +02:00
|
|
|
echo "CONFIG_DEBUG_SERIAL=y" >> seabios/.config
|
|
|
|
echo "CONFIG_DEBUG_SERIAL_PORT=$(CONFIG_TTYS0_BASE)" >> seabios/.config
|
2014-07-25 22:33:49 +02:00
|
|
|
else
|
2014-08-11 16:09:07 +02:00
|
|
|
echo "# CONFIG_DEBUG_SERIAL is not set" >> seabios/.config
|
2014-07-25 22:33:49 +02:00
|
|
|
endif
|
2014-07-25 22:39:05 +02:00
|
|
|
ifneq ($(CONFIG_SEABIOS_MALLOC_UPPERMEMORY),y)
|
2014-10-31 17:14:44 +01:00
|
|
|
echo "# CONFIG_MALLOC_UPPERMEMORY is not set" >> seabios/.config
|
2014-07-25 22:39:05 +02:00
|
|
|
endif
|
2014-07-25 22:24:32 +02:00
|
|
|
ifneq ($(CONFIG_SEABIOS_THREAD_OPTIONROMS),y)
|
2014-08-11 16:09:07 +02:00
|
|
|
echo "# CONFIG_THREAD_OPTIONROMS is not set" >> seabios/.config
|
2014-09-12 19:43:49 +02:00
|
|
|
endif
|
|
|
|
ifeq ($(CONFIG_SEABIOS_VGA_COREBOOT),y)
|
|
|
|
echo "CONFIG_VGA_COREBOOT=y" >> seabios/.config
|
|
|
|
echo "CONFIG_BUILD_VGABIOS=y" >> seabios/.config
|
2014-07-25 22:24:32 +02:00
|
|
|
endif
|
2011-02-07 21:16:40 +01:00
|
|
|
# This shows how to force a previously set .config option *off*
|
2014-08-11 16:09:07 +02:00
|
|
|
#echo "# CONFIG_SMBIOS is not set" >> seabios/.config
|
|
|
|
$(MAKE) -C seabios olddefconfig OUT=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)"
|
2015-06-11 14:24:39 +02:00
|
|
|
export VERSION=$$(cd seabios && \
|
|
|
|
git describe --tags --long --dirty 2>/dev/null || \
|
|
|
|
echo "unknown") ; \
|
2014-08-11 16:09:07 +02:00
|
|
|
$(MAKE) -C seabios OUT=out/
|
2010-12-30 18:39:50 +01:00
|
|
|
|
|
|
|
clean:
|
2014-08-11 16:09:07 +02:00
|
|
|
test -d seabios && $(MAKE) -C seabios clean OUT=out/ || exit 0
|
2010-12-30 18:39:50 +01:00
|
|
|
|
|
|
|
distclean:
|
2014-08-11 16:09:07 +02:00
|
|
|
rm -rf 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
|