blob: a89ea2af594b16002645989f50266b40ad7cbc00 [file] [log] [blame]
Patrick Georgi2ac251b2014-01-10 20:30:16 +01001TAG-$(CONFIG_FILO_MASTER)=origin/master
2NAME-$(CONFIG_FILO_MASTER)=MASTER
Kevin Paul Herbert0d2bb802016-06-14 19:54:15 -07003TAG-$(CONFIG_FILO_STABLE)=22baa6bde9339029edfafa421b3d4a7be159edad
Stefan Reinauere50952f2011-04-15 03:34:05 +00004NAME-$(CONFIG_FILO_STABLE)=STABLE
5
Paul Menzel0cdaad32018-04-06 11:07:27 +02006project_git_repo=https://review.coreboot.org/filo.git
Martin Rothae269c02016-03-16 12:42:05 -06007project_dir=filo
8
Patrick Georgi3ee43172014-05-09 20:41:01 +02009unexport KCONFIG_AUTOHEADER
Stefan Reinauere50952f2011-04-15 03:34:05 +000010unexport KCONFIG_AUTOCONFIG
Patrick Georgi3ee43172014-05-09 20:41:01 +020011unexport KCONFIG_DEPENDENCIES
12unexport KCONFIG_SPLITCONFIG
13unexport KCONFIG_TRISTATE
14unexport KCONFIG_NEGATIVES
Stefan Reinauere50952f2011-04-15 03:34:05 +000015
16all: filo
17
18checkout:
Thomas Gstädtnercc97c562011-10-21 17:40:42 +020019 echo " GIT FILO $(NAME-y)"
Stefan Reinauere50952f2011-04-15 03:34:05 +000020 test -d filo || \
Martin Rothae269c02016-03-16 12:42:05 -060021 git clone $(project_git_repo) $(project_dir)
Thomas Gstädtnercc97c562011-10-21 17:40:42 +020022 cd filo && \
23 git checkout master && \
Patrick Georgi2ac251b2014-01-10 20:30:16 +010024 git remote update && \
Thomas Gstädtnercc97c562011-10-21 17:40:42 +020025 test -n $(TAG-y) && \
26 git branch -f $(NAME-y) $(TAG-y) && \
27 git checkout $(NAME-y)
Stefan Reinauere50952f2011-04-15 03:34:05 +000028
29config: libpayload
30 echo " CONFIG FILO $(NAME-y)"
Thomas Gstädtnerfc204c52011-10-21 22:01:32 +020031 $(MAKE) -C filo defconfig LIBCONFIG_PATH=../../../libpayload
Patrick Georgi2ac251b2014-01-10 20:30:16 +010032 # This shows how to force a previously unset .config option *on*
33 #echo "CONFIG_VGAHOOKS=y" >> filo/.config
Stefan Reinauere50952f2011-04-15 03:34:05 +000034 # This shows how to force a previously set .config option *off*
35 #echo "# CONFIG_SMBIOS is not set" >> filo/.config
Patrick Georgi2ac251b2014-01-10 20:30:16 +010036 $(MAKE) -C filo oldconfig LIBCONFIG_PATH=../../../libpayload
Stefan Reinauere50952f2011-04-15 03:34:05 +000037
38filo: config
39 echo " MAKE FILO $(NAME-y)"
Kyösti Mälkki3e71dc52016-10-25 00:13:37 +030040 $(MAKE) -C filo LIBCONFIG_PATH=../../../libpayload
Stefan Reinauere50952f2011-04-15 03:34:05 +000041
42libpayload: checkout
43 cd ../../libpayload && $(MAKE) defconfig && \
44 $(MAKE) && $(MAKE) DESTDIR=../external/FILO/filo/build install
45
46clean:
47 test -d filo && $(MAKE) -C filo clean || exit 0
48
49distclean:
50 rm -rf filo
51
Martin Rothae269c02016-03-16 12:42:05 -060052print-repo-info:
53 echo "$(project_git_repo) $(project_dir)"
54
55.PHONY: checkout config filo clean distclean print-repo-info