blob: 6a96a224558e5374279a0a02e1bd9f0607cf5841 [file] [log] [blame]
Patrick Georgi2ac251b2014-01-10 20:30:16 +01001TAG-$(CONFIG_FILO_MASTER)=origin/master
2NAME-$(CONFIG_FILO_MASTER)=MASTER
Thomas Gstädtnercc97c562011-10-21 17:40:42 +02003TAG-$(CONFIG_FILO_STABLE)=4dbb31a64fe5b1c7e3025ab34619220609897646
Stefan Reinauere50952f2011-04-15 03:34:05 +00004NAME-$(CONFIG_FILO_STABLE)=STABLE
5
Patrick Georgi3ee43172014-05-09 20:41:01 +02006unexport KCONFIG_AUTOHEADER
Stefan Reinauere50952f2011-04-15 03:34:05 +00007unexport KCONFIG_AUTOCONFIG
Patrick Georgi3ee43172014-05-09 20:41:01 +02008unexport KCONFIG_DEPENDENCIES
9unexport KCONFIG_SPLITCONFIG
10unexport KCONFIG_TRISTATE
11unexport KCONFIG_NEGATIVES
Stefan Reinauere50952f2011-04-15 03:34:05 +000012
13all: filo
14
15checkout:
Thomas Gstädtnercc97c562011-10-21 17:40:42 +020016 echo " GIT FILO $(NAME-y)"
Stefan Reinauere50952f2011-04-15 03:34:05 +000017 test -d filo || \
Thomas Gstädtnercc97c562011-10-21 17:40:42 +020018 git clone http://review.coreboot.org/p/filo.git
19 cd filo && \
20 git checkout master && \
Patrick Georgi2ac251b2014-01-10 20:30:16 +010021 git remote update && \
Thomas Gstädtnercc97c562011-10-21 17:40:42 +020022 test -n $(TAG-y) && \
23 git branch -f $(NAME-y) $(TAG-y) && \
24 git checkout $(NAME-y)
Stefan Reinauere50952f2011-04-15 03:34:05 +000025
26config: libpayload
27 echo " CONFIG FILO $(NAME-y)"
Thomas Gstädtnerfc204c52011-10-21 22:01:32 +020028 $(MAKE) -C filo defconfig LIBCONFIG_PATH=../../../libpayload
Patrick Georgi2ac251b2014-01-10 20:30:16 +010029 # This shows how to force a previously unset .config option *on*
30 #echo "CONFIG_VGAHOOKS=y" >> filo/.config
Stefan Reinauere50952f2011-04-15 03:34:05 +000031 # This shows how to force a previously set .config option *off*
32 #echo "# CONFIG_SMBIOS is not set" >> filo/.config
Patrick Georgi2ac251b2014-01-10 20:30:16 +010033 $(MAKE) -C filo oldconfig LIBCONFIG_PATH=../../../libpayload
Stefan Reinauere50952f2011-04-15 03:34:05 +000034
35filo: config
36 echo " MAKE FILO $(NAME-y)"
37 $(MAKE) -C filo
38
39libpayload: checkout
40 cd ../../libpayload && $(MAKE) defconfig && \
41 $(MAKE) && $(MAKE) DESTDIR=../external/FILO/filo/build install
42
43clean:
44 test -d filo && $(MAKE) -C filo clean || exit 0
45
46distclean:
47 rm -rf filo
48
49.PHONY: checkout config filo clean distclean