From 8645420963417ffc64d2e88f64935249e0db225c Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Mon, 21 Aug 2017 05:51:07 +0200 Subject: add basic support for frosted operating system https://github.com/insane-adding-machines/frosted Rework our architecture selection and os dependent logic a little bit to be cleaner. As only arm is supported, we only modify arm systems to comply with new changeset. --- target/Makefile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'target/Makefile') diff --git a/target/Makefile b/target/Makefile index 2b6498011..47626deaa 100644 --- a/target/Makefile +++ b/target/Makefile @@ -31,6 +31,7 @@ ADK_PACKAGE_CRYPTINIT_ROOT:=$(strip $(subst ",, $(ADK_PACKAGE_CRYPTINIT_ROOT))) ADK_PACKAGE_CRYPTINIT_SWAP:=$(strip $(subst ",, $(ADK_PACKAGE_CRYPTINIT_SWAP))) ADK_PACKAGE_CMDLINE:=root=$(ADK_PACKAGE_CRYPTINIT_ROOT) swap=$(ADK_PACKAGE_CRYPTINIT_SWAP) resume=/dev/mapper/swapcrypt +ifeq ($(ADK_TARGET_OS_LINUX),y) ifeq ($(ADK_TARGET_KERNEL_USE_MINICONFIG),y) ifeq ($(ADK_TARGET_KERNEL_CUSTOMISING),y) config-prepare: $(ADK_TOPDIR)/.config @@ -129,13 +130,29 @@ else config-prepare: $(ADK_TOPDIR)/.config @true endif +endif + +ifeq ($(ADK_TARGET_OS_FROSTED),y) +config-prepare: $(ADK_TOPDIR)/.config + @PATH='$(HOST_PATH)' sed -n '/^FROSTED_/s///p' $(ADK_TOPDIR)/.config \ + >$(BUILD_DIR)/.frosted +endif +ifeq ($(ADK_TARGET_OS_FROSTED),y) +prepare: frosted-prepare +compile: frosted-compile +install: frosted-install +endif + + +ifeq ($(ADK_TARGET_OS_LINUX),y) prepare: $(ADK_TARGET_ARCH)-prepare compile: $(ADK_TARGET_ARCH)-compile image: $(ADK_TARGET_ARCH)-imageclean $(ADK_TARGET_ARCH)-imageinstall targethelp: $(ADK_TARGET_ARCH)-targethelp install: $(ADK_TARGET_ARCH)-imageclean $(ADK_TARGET_ARCH)-install $(ADK_TARGET_ARCH)-imageinstall clean: $(ADK_TARGET_ARCH)-clean $(ADK_TARGET_ARCH)-imageclean +endif %-clean: $(START_TRACE) "target/$(patsubst %-clean,%,$@)-clean.. " -- cgit v1.2.3