coreboot-kgpe-d16/payloads/external/FILO/Makefile
Martin Roth ae269c0276 payloads: Add a target to print payload git urls and directories
Being able to fetch this list will allow the jenkins builder to securely
fetch the external payloads so we can start testing payload builds.

Change-Id: I777229216b2f11f0f427cd5f8cfa003da4171a77
Signed-off-by: Martin Roth <martinroth@google.com>
Reviewed-on: https://review.coreboot.org/14132
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
2016-03-21 14:32:02 +01:00

55 lines
1.5 KiB
Makefile

TAG-$(CONFIG_FILO_MASTER)=origin/master
NAME-$(CONFIG_FILO_MASTER)=MASTER
TAG-$(CONFIG_FILO_STABLE)=4dbb31a64fe5b1c7e3025ab34619220609897646
NAME-$(CONFIG_FILO_STABLE)=STABLE
project_git_repo=http://review.coreboot.org/p/filo.git
project_dir=filo
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 $(project_git_repo) $(project_dir)
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
print-repo-info:
echo "$(project_git_repo) $(project_dir)"
.PHONY: checkout config filo clean distclean print-repo-info