coreboot-kgpe-d16/payloads/external/FILO/Makefile
Nicholas Chin 55d941033a payloads/filo: Update branch name from master to main
It seems like the default branch for FILO was renamed from 'master' to
'main'.

TEST: FILO builds correctly when selecting 'HEAD' for the FILO version
option.

Change-Id: I6c355d757987551e850f9d24f6bfb14167cb8046
Signed-off-by: Nicholas Chin <nic.c3.14@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/76101
Reviewed-by: Felix Singer <service+coreboot-gerrit@felixsinger.de>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
2023-06-28 15:46:08 +00:00

62 lines
1.8 KiB
Makefile

TAG-$(CONFIG_FILO_HEAD)=origin/main
NAME-$(CONFIG_FILO_HEAD)=MAIN
TAG-$(CONFIG_FILO_STABLE)=c2fa1ea6125c63e84cdf7779c37d76da8c5bc412
NAME-$(CONFIG_FILO_STABLE)=STABLE
project_git_repo=https://review.coreboot.org/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 main && \
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
ifeq ($(CONFIG_FILO_USE_AUTOBOOT),y)
echo "# CONFIG_USE_GRUB is not set" >> filo/.config
echo "CONFIG_USE_AUTOBOOT=y" >> filo/.config
echo 'CONFIG_AUTOBOOT_FILE="$(CONFIG_FILO_AUTOBOOT_FILE)"' >> filo/.config
echo "CONFIG_AUTOBOOT_DELAY=$(CONFIG_FILO_AUTOBOOT_DELAY)" >> filo/.config
endif
$(MAKE) -C filo oldconfig LIBCONFIG_PATH=../../../libpayload
filo: config
echo " MAKE FILO $(NAME-y)"
$(MAKE) -C filo LIBCONFIG_PATH=../../../libpayload
libpayload: checkout
cd ../../libpayload && $(MAKE) defconfig && \
$(MAKE) && $(MAKE) DESTDIR=../external/FILO/filo/build install
clean:
test -d filo && $(MAKE) -C filo clean LIBCONFIG_PATH=../../../libpayload || exit 0
distclean:
rm -rf filo
print-repo-info:
echo "$(project_git_repo) $(project_dir)"
.PHONY: checkout config filo clean distclean print-repo-info