mb/amb/birman*/gpio: remove configuration for VDD_MEM_VID[0,1]
[coreboot2.git] / payloads / external / BOOTBOOT / Makefile
blob3bf5b5441c0c406869cef50f5c27e4e419ca4bc1
1 project_git_repo=https://gitlab.com/bztsrc/bootboot.git
2 project_dir=bootboot
3 ifeq ($(CONFIG_ARCH_ARM64),y)
4 loader_dir=$(project_dir)/aarch64-cb
5 else
6 loader_dir=$(project_dir)/x86_64-cb
7 endif
9 unexport KCONFIG_AUTOHEADER
10 unexport KCONFIG_AUTOCONFIG
11 unexport KCONFIG_DEPENDENCIES
12 unexport KCONFIG_SPLITCONFIG
13 unexport KCONFIG_TRISTATE
14 unexport KCONFIG_NEGATIVES
16 all: bootboot
18 checkout:
19 echo " GIT BOOTBOOT $(loader_dir)"
20 test -L $(project_dir) || test -d $(project_dir) || \
21 git clone $(project_git_repo) $(project_dir)
23 bootboot: libpayload
24 echo " MAKE $(loader_dir)"
25 $(MAKE) -C $(loader_dir) LIBCONFIG_PATH=../../../libpayload
27 libpayload: checkout
28 cp $(loader_dir)/lib.config ../../libpayload/.config
29 cd ../../libpayload && $(MAKE) oldconfig && \
30 $(MAKE) && $(MAKE) DESTDIR=../external/BOOTBOOT/$(loader_dir) install
32 clean:
33 test -d $(loader_dir) && $(MAKE) -C $(loader_dir) clean || exit 0
35 distclean:
36 rm -rf $(project_dir)
38 print-repo-info:
39 echo "$(project_git_repo) $(project_dir)"
41 .PHONY: checkout bootboot libpayload clean distclean print-repo-info