SHELL=bash -o pipefail
TOP:=$(abspath ../..)
-include $(TOP)/common.mk

ifneq ($(strip $(subst ",,$(LB_MKPROM2_PATH))),)
 MKPROM2=$(strip $(subst ",,$(LB_MKPROM2_PATH)))/mkprom2
else
 MKPROM2=mkprom2
endif

.PHONY: xconfig gconfig menuconfig preconfig pre_postconfig postconfig build
.PHONY: cfg_load cfg_save

default: build

xconfig:

gconfig:

menuconfig:

preconfig:

pre_postconfig:

postconfig:

# Create a Bootable PROM Image from the wrapped Linux RAM Image
_build:
	cmdline=$(LB_MKPROM2_CMD); \
	 $(MKPROM2) $$cmdline -o $(TOP)/output/images/image.prom $(TOP)/output/images/image.ram -msoft-float

build:
	$(MAKE) _build 2>&1 | tee $(TOP)/output/images/mkprom.log

cfg_load:

cfg_save:
