Patrick Georgi | 2ac251b | 2014-01-10 20:30:16 +0100 | [diff] [blame] | 1 | TAG-$(CONFIG_FILO_MASTER)=origin/master |
| 2 | NAME-$(CONFIG_FILO_MASTER)=MASTER |
Thomas Gstädtner | cc97c56 | 2011-10-21 17:40:42 +0200 | [diff] [blame] | 3 | TAG-$(CONFIG_FILO_STABLE)=4dbb31a64fe5b1c7e3025ab34619220609897646 |
Stefan Reinauer | e50952f | 2011-04-15 03:34:05 +0000 | [diff] [blame] | 4 | NAME-$(CONFIG_FILO_STABLE)=STABLE |
| 5 | |
Patrick Georgi | 3ee4317 | 2014-05-09 20:41:01 +0200 | [diff] [blame] | 6 | unexport KCONFIG_AUTOHEADER |
Stefan Reinauer | e50952f | 2011-04-15 03:34:05 +0000 | [diff] [blame] | 7 | unexport KCONFIG_AUTOCONFIG |
Patrick Georgi | 3ee4317 | 2014-05-09 20:41:01 +0200 | [diff] [blame] | 8 | unexport KCONFIG_DEPENDENCIES |
| 9 | unexport KCONFIG_SPLITCONFIG |
| 10 | unexport KCONFIG_TRISTATE |
| 11 | unexport KCONFIG_NEGATIVES |
Stefan Reinauer | e50952f | 2011-04-15 03:34:05 +0000 | [diff] [blame] | 12 | |
| 13 | all: filo |
| 14 | |
| 15 | checkout: |
Thomas Gstädtner | cc97c56 | 2011-10-21 17:40:42 +0200 | [diff] [blame] | 16 | echo " GIT FILO $(NAME-y)" |
Stefan Reinauer | e50952f | 2011-04-15 03:34:05 +0000 | [diff] [blame] | 17 | test -d filo || \ |
Thomas Gstädtner | cc97c56 | 2011-10-21 17:40:42 +0200 | [diff] [blame] | 18 | git clone http://review.coreboot.org/p/filo.git |
| 19 | cd filo && \ |
| 20 | git checkout master && \ |
Patrick Georgi | 2ac251b | 2014-01-10 20:30:16 +0100 | [diff] [blame] | 21 | git remote update && \ |
Thomas Gstädtner | cc97c56 | 2011-10-21 17:40:42 +0200 | [diff] [blame] | 22 | test -n $(TAG-y) && \ |
| 23 | git branch -f $(NAME-y) $(TAG-y) && \ |
| 24 | git checkout $(NAME-y) |
Stefan Reinauer | e50952f | 2011-04-15 03:34:05 +0000 | [diff] [blame] | 25 | |
| 26 | config: libpayload |
| 27 | echo " CONFIG FILO $(NAME-y)" |
Thomas Gstädtner | fc204c5 | 2011-10-21 22:01:32 +0200 | [diff] [blame] | 28 | $(MAKE) -C filo defconfig LIBCONFIG_PATH=../../../libpayload |
Patrick Georgi | 2ac251b | 2014-01-10 20:30:16 +0100 | [diff] [blame] | 29 | # This shows how to force a previously unset .config option *on* |
| 30 | #echo "CONFIG_VGAHOOKS=y" >> filo/.config |
Stefan Reinauer | e50952f | 2011-04-15 03:34:05 +0000 | [diff] [blame] | 31 | # This shows how to force a previously set .config option *off* |
| 32 | #echo "# CONFIG_SMBIOS is not set" >> filo/.config |
Patrick Georgi | 2ac251b | 2014-01-10 20:30:16 +0100 | [diff] [blame] | 33 | $(MAKE) -C filo oldconfig LIBCONFIG_PATH=../../../libpayload |
Stefan Reinauer | e50952f | 2011-04-15 03:34:05 +0000 | [diff] [blame] | 34 | |
| 35 | filo: config |
| 36 | echo " MAKE FILO $(NAME-y)" |
| 37 | $(MAKE) -C filo |
| 38 | |
| 39 | libpayload: checkout |
| 40 | cd ../../libpayload && $(MAKE) defconfig && \ |
| 41 | $(MAKE) && $(MAKE) DESTDIR=../external/FILO/filo/build install |
| 42 | |
| 43 | clean: |
| 44 | test -d filo && $(MAKE) -C filo clean || exit 0 |
| 45 | |
| 46 | distclean: |
| 47 | rm -rf filo |
| 48 | |
| 49 | .PHONY: checkout config filo clean distclean |