# the graphical configuration frontent to use
XCONF:=./ciao-kconfig/scripts/kconfig/qconf
# path to the curses frontend
MENUCONF:=./ciao-kconfig/scripts/kconfig/mconf

# Path to CiAO source repository
CIAOBASE ?= ~/ciaoos
SRCPATH  ?= $(CIAOBASE)/os
CONFIGPATH= $(CIAOBASE)/kconf/config/tc_triboard1796/os/
CIAO_CONFIG?=software.config
ARCH=_tc
CONFIG_SPACE ?= software.confspace.pl


.PHONY: transform xconfig 

xconfig:
	export CIAO_CONFIG=$(CIAO_CONFIG); $(XCONF) ciao.fm

transform:
	#rm -f copied_files
	rm -fR config
	./transform.pl -s $(CONFIG_SPACE) -f $(CIAO_CONFIG) -i $(SRCPATH) -o $(CONFIGPATH) -a $(ARCH) -l

# for debugging only:
.PHONY: diff
diff:
	diff -rbq ../config/tc_triboard1796/os/ $(CONFIGPATH)	

