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