Reliably build arbitrary Kconfig-based revisions of SeaBIOS
[coreboot.git] / payloads / external / SeaBIOS / Makefile.inc
1
2
3 TAG-$(CONFIG_SEABIOS_MASTER)=origin/master
4 TAG-$(CONFIG_SEABIOS_STABLE)=1efb10b9ea30c45a8c9c6230234fefa10d2886ed
5
6 unexport KCONFIG_AUTOCONFIG
7
8 all: seabios
9
10 checkout:
11         echo "    GIT        SeaBIOS $(TAG-y)"
12         test -d seabios && ( cd seabios; git fetch ) || \
13                 git clone git://git.linuxtogo.org/home/kevin/seabios.git
14         cd seabios; git checkout master; git branch -D coreboot 2>/dev/null; git checkout -b coreboot $(TAG-y)
15
16 config: checkout
17         echo "    CONFIG     SeaBIOS $(TAG-y)"
18         $(MAKE) -C seabios defconfig
19         echo "CONFIG_COREBOOT=y" >> seabios/.config
20         echo "CONFIG_DEBUG_SERIAL=y" >> seabios/.config
21         echo "CONFIG_COREBOOT_FLASH=y" >> seabios/.config
22         echo "CONFIG_LZMA=y" >> seabios/.config
23         echo "CONFIG_FLASH_FLOPPY=y" >> seabios/.config
24         echo "CONFIG_VGAHOOKS=y" >> seabios/.config
25         # This shows how to force a previously set .config option *off*
26         #echo "# CONFIG_SMBIOS is not set" >> seabios/.config
27
28 seabios: config
29         echo "    MAKE       SeaBIOS $(TAG-y)"
30         $(MAKE) -C seabios
31
32 clean:
33         test -d seabios && $(MAKE) -C seabios clean || exit 0
34
35 distclean:
36         rm -rf seabios
37
38 .PHONY: checkout config seabios clean distclean