aboutsummaryrefslogtreecommitdiff
path: root/payloads/external/FILO/Makefile
diff options
context:
space:
mode:
authorMartin Roth <martinroth@google.com>2016-03-16 10:39:30 -0600
committerMartin Roth <martinroth@google.com>2016-03-21 04:03:16 +0100
commitc8ed34075b7785c91cfb1c8556357b2e70cf765d (patch)
treed24ee1926540ac2e9e158d74be93b11623e33610 /payloads/external/FILO/Makefile
parentc2b50ace1b04c90c27dae8d5999c14f925b93c65 (diff)
payloads/external: Rename Makefile.inc to Makefile
These makefiles are not included by anything, so they shouldn't be named Makefile.inc. Also, having them all be named 'Makefile' makes some other consolidation work I'm doing much easier. Change-Id: I1234539ba6a0a6f47d2eb0c21de3da3607c6b8de Signed-off-by: Martin Roth <martinroth@google.com> Reviewed-on: https://review.coreboot.org/14130 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'payloads/external/FILO/Makefile')
-rw-r--r--payloads/external/FILO/Makefile49
1 files changed, 49 insertions, 0 deletions
diff --git a/payloads/external/FILO/Makefile b/payloads/external/FILO/Makefile
new file mode 100644
index 0000000000..6a96a22455
--- /dev/null
+++ b/payloads/external/FILO/Makefile
@@ -0,0 +1,49 @@
+TAG-$(CONFIG_FILO_MASTER)=origin/master
+NAME-$(CONFIG_FILO_MASTER)=MASTER
+TAG-$(CONFIG_FILO_STABLE)=4dbb31a64fe5b1c7e3025ab34619220609897646
+NAME-$(CONFIG_FILO_STABLE)=STABLE
+
+unexport KCONFIG_AUTOHEADER
+unexport KCONFIG_AUTOCONFIG
+unexport KCONFIG_DEPENDENCIES
+unexport KCONFIG_SPLITCONFIG
+unexport KCONFIG_TRISTATE
+unexport KCONFIG_NEGATIVES
+
+all: filo
+
+checkout:
+ echo " GIT FILO $(NAME-y)"
+ test -d filo || \
+ git clone http://review.coreboot.org/p/filo.git
+ cd filo && \
+ git checkout master && \
+ git remote update && \
+ test -n $(TAG-y) && \
+ git branch -f $(NAME-y) $(TAG-y) && \
+ git checkout $(NAME-y)
+
+config: libpayload
+ echo " CONFIG FILO $(NAME-y)"
+ $(MAKE) -C filo defconfig LIBCONFIG_PATH=../../../libpayload
+ # This shows how to force a previously unset .config option *on*
+ #echo "CONFIG_VGAHOOKS=y" >> filo/.config
+ # This shows how to force a previously set .config option *off*
+ #echo "# CONFIG_SMBIOS is not set" >> filo/.config
+ $(MAKE) -C filo oldconfig LIBCONFIG_PATH=../../../libpayload
+
+filo: config
+ echo " MAKE FILO $(NAME-y)"
+ $(MAKE) -C filo
+
+libpayload: checkout
+ cd ../../libpayload && $(MAKE) defconfig && \
+ $(MAKE) && $(MAKE) DESTDIR=../external/FILO/filo/build install
+
+clean:
+ test -d filo && $(MAKE) -C filo clean || exit 0
+
+distclean:
+ rm -rf filo
+
+.PHONY: checkout config filo clean distclean