generate.mk 1.34 KB
Newer Older
1
# set up initrd-bootchain config
2

3
ifneq (,$(BUILDDIR))
4 5 6

include $(BUILDDIR)/distcfg.mk

7
BOOTCHAIN_CFG := $(BUILDDIR)/stage1/files/.disk/bootchain
8 9

all: debug
10 11
	@[ -s "$(BOOTCHAIN_CFG)" ] || exit 1; \
	if [ -n "$(META_VOL_ID)" ]; then \
12 13 14 15
		DISTRO="$(META_VOL_ID)"; \
	else \
		DISTRO="$(RELNAME)"; \
	fi; \
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
	sed -i -e "s,@distro@,$$DISTRO," \
		-e "s,@bc_fgvt_activate@,$(BOOTCHAIN_BC_FGVT_ACTIVATE)," \
		-e "s,@waitdev_timeout@,$(BOOTCHAIN_WAITDEV_TIMEOUT)," \
		-e "s,@oem_welcome_text@,$(BOOTCHAIN_OEM_WELCOME_TEXT)," \
		-e "s,@oem_cdroot@,$(BOOTCHAIN_OEM_CDROOT)," \
		-e "s,@oem_default_stage2@,$(BOOTCHAIN_OEM_DEFAULT_STAGE2)," \
		-e "s,@oem_live_storage@,$(BOOTCHAIN_OEM_LIVE_STORAGE)," \
		-e "s,@oem_bad_storage@,$(BOOTCHAIN_OEM_BAD_STORAGE)," \
		-e "s,@oem_setup_storage@,$(BOOTCHAIN_OEM_SETUP_STORAGE)," \
		-e "s,@oem_images_base@,$(BOOTCHAIN_OEM_IMAGES_BASE)," \
		-e "s,@oem_overlays_dir@,$(BOOTCHAIN_OEM_OVERLAYS_DIR)," \
		-e "s,@oem_url_netinst@,$(BOOTCHAIN_OEM_URL_NETINST)," \
		-e "s,@oem_srv_netinst@,$(BOOTCHAIN_OEM_SRV_NETINST)," \
		-e "s,@oem_nfs_netinst@,$(BOOTCHAIN_OEM_NFS_NETINST)," \
		-e "s,@oem_cifs_netinst@,$(BOOTCHAIN_OEM_CIFS_NETINST)," \
31 32
		-e "s,@bc_logfile@,$(BOOTCHAIN_LOGFILE)," \
		-e "s,@bc_log_vt@,$(BOOTCHAIN_LOG_VT)," \
33
		$(BOOTCHAIN_CFG)
34 35 36 37 38 39 40

debug:
	@if [ -n "$(DEBUG)" ]; then \
		echo "** DISTRO: $(DISTRO)"; \
	fi

endif