Stefan Reinauer | 33ee3ee | 2011-01-25 19:27:23 +0000 | [diff] [blame] | 1 | TAG-$(CONFIG_SEABIOS_MASTER)=origin/master |
Alexander Couzens | ac0bc0c | 2015-11-28 18:40:27 +0100 | [diff] [blame] | 2 | TAG-$(CONFIG_SEABIOS_STABLE)=01a84bea2d28a19d2405c1ecac4bdef17683cc0c |
Peter Stuge | b1d1c4d | 2011-02-07 20:16:40 +0000 | [diff] [blame] | 3 | |
Patrick Georgi | 3ee4317 | 2014-05-09 20:41:01 +0200 | [diff] [blame] | 4 | unexport KCONFIG_AUTOHEADER |
Peter Stuge | b1d1c4d | 2011-02-07 20:16:40 +0000 | [diff] [blame] | 5 | unexport KCONFIG_AUTOCONFIG |
Patrick Georgi | 3ee4317 | 2014-05-09 20:41:01 +0200 | [diff] [blame] | 6 | unexport KCONFIG_DEPENDENCIES |
| 7 | unexport KCONFIG_SPLITCONFIG |
| 8 | unexport KCONFIG_TRISTATE |
| 9 | unexport KCONFIG_NEGATIVES |
Stefan Reinauer | f1939bb | 2010-12-30 17:39:50 +0000 | [diff] [blame] | 10 | |
Cristian Măgherușan-Stanciu | a78d572 | 2011-06-07 15:03:14 +0200 | [diff] [blame] | 11 | all: build |
Stefan Reinauer | f1939bb | 2010-12-30 17:39:50 +0000 | [diff] [blame] | 12 | |
Idwer Vollering | ab11a6a9 | 2014-08-11 16:09:07 +0200 | [diff] [blame] | 13 | seabios: |
Cristian Măgherușan-Stanciu | a78d572 | 2011-06-07 15:03:14 +0200 | [diff] [blame] | 14 | echo " Cloning SeaBIOS from Git" |
Idwer Vollering | ab11a6a9 | 2014-08-11 16:09:07 +0200 | [diff] [blame] | 15 | git clone http://review.coreboot.org/p/seabios.git seabios |
Cristian Măgherușan-Stanciu | a78d572 | 2011-06-07 15:03:14 +0200 | [diff] [blame] | 16 | |
Idwer Vollering | ab11a6a9 | 2014-08-11 16:09:07 +0200 | [diff] [blame] | 17 | fetch: seabios |
| 18 | cd seabios; git show $(TAG-y) >/dev/null 2>&1 ; if [ $$? -ne 0 ]; \ |
Cristian Măgherușan-Stanciu | a78d572 | 2011-06-07 15:03:14 +0200 | [diff] [blame] | 19 | then echo " Fetching new commits from the SeaBIOS git repo"; git fetch; fi |
| 20 | |
| 21 | checkout: fetch |
| 22 | echo " Checking out SeaBIOS revision $(TAG-y)" |
Idwer Vollering | ab11a6a9 | 2014-08-11 16:09:07 +0200 | [diff] [blame] | 23 | cd seabios; git checkout master; git branch -D coreboot 2>/dev/null; git checkout -b coreboot $(TAG-y) |
Peter Stuge | b1d1c4d | 2011-02-07 20:16:40 +0000 | [diff] [blame] | 24 | |
| 25 | config: checkout |
| 26 | echo " CONFIG SeaBIOS $(TAG-y)" |
Idwer Vollering | ab11a6a9 | 2014-08-11 16:09:07 +0200 | [diff] [blame] | 27 | echo "CONFIG_COREBOOT=y" > seabios/.config |
Martin Roth | 0d7f133 | 2014-07-25 14:33:49 -0600 | [diff] [blame] | 28 | ifeq ($(CONFIG_CONSOLE_SERIAL),y) |
Idwer Vollering | ab11a6a9 | 2014-08-11 16:09:07 +0200 | [diff] [blame] | 29 | echo "CONFIG_DEBUG_SERIAL=y" >> seabios/.config |
| 30 | echo "CONFIG_DEBUG_SERIAL_PORT=$(CONFIG_TTYS0_BASE)" >> seabios/.config |
Martin Roth | 0d7f133 | 2014-07-25 14:33:49 -0600 | [diff] [blame] | 31 | else |
Idwer Vollering | ab11a6a9 | 2014-08-11 16:09:07 +0200 | [diff] [blame] | 32 | echo "# CONFIG_DEBUG_SERIAL is not set" >> seabios/.config |
Martin Roth | 0d7f133 | 2014-07-25 14:33:49 -0600 | [diff] [blame] | 33 | endif |
Martin Roth | 9780452 | 2014-07-25 14:24:32 -0600 | [diff] [blame] | 34 | ifneq ($(CONFIG_SEABIOS_THREAD_OPTIONROMS),y) |
Idwer Vollering | ab11a6a9 | 2014-08-11 16:09:07 +0200 | [diff] [blame] | 35 | echo "# CONFIG_THREAD_OPTIONROMS is not set" >> seabios/.config |
Martin Roth | 9780452 | 2014-07-25 14:24:32 -0600 | [diff] [blame] | 36 | endif |
Edward O'Callaghan | a296f9e | 2014-09-13 03:43:49 +1000 | [diff] [blame] | 37 | ifeq ($(CONFIG_SEABIOS_VGA_COREBOOT),y) |
| 38 | echo "CONFIG_VGA_COREBOOT=y" >> seabios/.config |
| 39 | echo "CONFIG_BUILD_VGABIOS=y" >> seabios/.config |
| 40 | endif |
Martin Roth | 99d05c7 | 2015-11-28 15:44:34 -0700 | [diff] [blame] | 41 | ifneq ($(CONFIG_PAYLOAD_CONFIGFILE),) |
| 42 | ifneq ("$(wildcard $(CONFIG_PAYLOAD_CONFIGFILE))","") |
| 43 | cat $(CONFIG_PAYLOAD_CONFIGFILE) >> seabios/.config |
| 44 | else |
| 45 | echo "Error: File $(CONFIG_PAYLOAD_CONFIGFILE) does not exist" |
| 46 | false |
| 47 | endif |
| 48 | endif |
Peter Stuge | b1d1c4d | 2011-02-07 20:16:40 +0000 | [diff] [blame] | 49 | # This shows how to force a previously set .config option *off* |
Idwer Vollering | ab11a6a9 | 2014-08-11 16:09:07 +0200 | [diff] [blame] | 50 | #echo "# CONFIG_SMBIOS is not set" >> seabios/.config |
| 51 | $(MAKE) -C seabios olddefconfig OUT=out/ |
Peter Stuge | b1d1c4d | 2011-02-07 20:16:40 +0000 | [diff] [blame] | 52 | |
Cristian Măgherușan-Stanciu | a78d572 | 2011-06-07 15:03:14 +0200 | [diff] [blame] | 53 | build: config |
Peter Stuge | b1d1c4d | 2011-02-07 20:16:40 +0000 | [diff] [blame] | 54 | echo " MAKE SeaBIOS $(TAG-y)" |
Idwer Vollering | ab11a6a9 | 2014-08-11 16:09:07 +0200 | [diff] [blame] | 55 | $(MAKE) -C seabios OUT=out/ |
Stefan Reinauer | f1939bb | 2010-12-30 17:39:50 +0000 | [diff] [blame] | 56 | |
| 57 | clean: |
Martin Roth | ac83367 | 2015-06-24 19:43:17 -0600 | [diff] [blame] | 58 | test -d seabios/out && rm -rf seabios/out || exit 0 |
Stefan Reinauer | f1939bb | 2010-12-30 17:39:50 +0000 | [diff] [blame] | 59 | |
| 60 | distclean: |
Idwer Vollering | ab11a6a9 | 2014-08-11 16:09:07 +0200 | [diff] [blame] | 61 | rm -rf seabios |
Stefan Reinauer | f1939bb | 2010-12-30 17:39:50 +0000 | [diff] [blame] | 62 | |
Cristian Măgherușan-Stanciu | a78d572 | 2011-06-07 15:03:14 +0200 | [diff] [blame] | 63 | .PHONY: checkout config build clean distclean clone fetch |