Stefan Reinauer | f1939bb | 2010-12-30 17:39:50 +0000 | [diff] [blame] | 1 | |
| 2 | |
Stefan Reinauer | 33ee3ee | 2011-01-25 19:27:23 +0000 | [diff] [blame] | 3 | TAG-$(CONFIG_SEABIOS_MASTER)=origin/master |
Peter Stuge | 9b48ef2 | 2012-10-16 02:25:07 +0200 | [diff] [blame^] | 4 | TAG-$(CONFIG_SEABIOS_STABLE)=51755c3b5ed9dcdfdef8cee56631d68642bde416 |
Peter Stuge | b1d1c4d | 2011-02-07 20:16:40 +0000 | [diff] [blame] | 5 | |
| 6 | unexport KCONFIG_AUTOCONFIG |
Stefan Reinauer | f1939bb | 2010-12-30 17:39:50 +0000 | [diff] [blame] | 7 | |
Cristian Măgherușan-Stanciu | a78d572 | 2011-06-07 15:03:14 +0200 | [diff] [blame] | 8 | all: build |
Stefan Reinauer | f1939bb | 2010-12-30 17:39:50 +0000 | [diff] [blame] | 9 | |
Stefan Reinauer | aff6dc2 | 2012-01-21 10:34:22 -0800 | [diff] [blame] | 10 | $(OUT)/seabios: |
Cristian Măgherușan-Stanciu | a78d572 | 2011-06-07 15:03:14 +0200 | [diff] [blame] | 11 | echo " Cloning SeaBIOS from Git" |
Patrick Georgi | eb129bb | 2012-05-09 21:07:17 +0200 | [diff] [blame] | 12 | git clone http://review.coreboot.org/p/seabios.git $(OUT)/seabios |
Cristian Măgherușan-Stanciu | a78d572 | 2011-06-07 15:03:14 +0200 | [diff] [blame] | 13 | |
Stefan Reinauer | aff6dc2 | 2012-01-21 10:34:22 -0800 | [diff] [blame] | 14 | fetch: $(OUT)/seabios |
| 15 | cd $(OUT)/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] | 16 | then echo " Fetching new commits from the SeaBIOS git repo"; git fetch; fi |
| 17 | |
| 18 | checkout: fetch |
| 19 | echo " Checking out SeaBIOS revision $(TAG-y)" |
Stefan Reinauer | aff6dc2 | 2012-01-21 10:34:22 -0800 | [diff] [blame] | 20 | cd $(OUT)/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] | 21 | |
| 22 | config: checkout |
| 23 | echo " CONFIG SeaBIOS $(TAG-y)" |
Stefan Reinauer | aff6dc2 | 2012-01-21 10:34:22 -0800 | [diff] [blame] | 24 | $(MAKE) -C $(OUT)/seabios defconfig OUT=$(OUT)/seabios/out/ |
| 25 | echo "CONFIG_COREBOOT=y" >> $(OUT)/seabios/.config |
| 26 | echo "CONFIG_DEBUG_SERIAL=y" >> $(OUT)/seabios/.config |
| 27 | echo "CONFIG_DEBUG_SERIAL_PORT=0x3f8" >> $(OUT)/seabios/.config |
| 28 | echo "CONFIG_COREBOOT_FLASH=y" >> $(OUT)/seabios/.config |
| 29 | echo "CONFIG_LZMA=y" >> $(OUT)/seabios/.config |
| 30 | echo "CONFIG_FLASH_FLOPPY=y" >> $(OUT)/seabios/.config |
| 31 | echo "CONFIG_VGAHOOKS=y" >> $(OUT)/seabios/.config |
Peter Stuge | b1d1c4d | 2011-02-07 20:16:40 +0000 | [diff] [blame] | 32 | # This shows how to force a previously set .config option *off* |
Stefan Reinauer | aff6dc2 | 2012-01-21 10:34:22 -0800 | [diff] [blame] | 33 | #echo "# CONFIG_SMBIOS is not set" >> $(OUT)/seabios/.config |
Peter Stuge | b1d1c4d | 2011-02-07 20:16:40 +0000 | [diff] [blame] | 34 | |
Cristian Măgherușan-Stanciu | a78d572 | 2011-06-07 15:03:14 +0200 | [diff] [blame] | 35 | build: config |
Peter Stuge | b1d1c4d | 2011-02-07 20:16:40 +0000 | [diff] [blame] | 36 | echo " MAKE SeaBIOS $(TAG-y)" |
Stefan Reinauer | aff6dc2 | 2012-01-21 10:34:22 -0800 | [diff] [blame] | 37 | $(MAKE) -C $(OUT)/seabios OUT=$(OUT)/seabios/out/ |
Stefan Reinauer | f1939bb | 2010-12-30 17:39:50 +0000 | [diff] [blame] | 38 | |
| 39 | clean: |
Stefan Reinauer | aff6dc2 | 2012-01-21 10:34:22 -0800 | [diff] [blame] | 40 | test -d $(OUT)/seabios && $(MAKE) -C $(OUT)/seabios clean OUT=$(OUT)/seabios/out/ || exit 0 |
Stefan Reinauer | f1939bb | 2010-12-30 17:39:50 +0000 | [diff] [blame] | 41 | |
| 42 | distclean: |
Stefan Reinauer | aff6dc2 | 2012-01-21 10:34:22 -0800 | [diff] [blame] | 43 | rm -rf $(OUT)/seabios |
Stefan Reinauer | f1939bb | 2010-12-30 17:39:50 +0000 | [diff] [blame] | 44 | |
Cristian Măgherușan-Stanciu | a78d572 | 2011-06-07 15:03:14 +0200 | [diff] [blame] | 45 | .PHONY: checkout config build clean distclean clone fetch |