summaryrefslogtreecommitdiff
path: root/target/Makefile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2017-08-21 05:51:07 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2017-08-27 19:46:26 +0200
commit8645420963417ffc64d2e88f64935249e0db225c (patch)
tree1d35667cf063d8c370634da66047d01455e9d741 /target/Makefile
parent68769b1a66f9df3387811c9de7aa146c2e17ff92 (diff)
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.
Diffstat (limited to 'target/Makefile')
-rw-r--r--target/Makefile17
1 files changed, 17 insertions, 0 deletions
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.. "