diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2011-07-27 11:14:05 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2011-07-27 11:14:05 +0200 |
commit | 837188c702e62f8f9a0fd36d10c3b19685ffd851 (patch) | |
tree | 8991d8966d3a82fd75694244d89edcb5de6ce1cb /target/Makefile | |
parent | 71bb2494ff48192c10c345062f2e0d051fe9109e (diff) |
reimplement cryptinit as shell script
Diffstat (limited to 'target/Makefile')
-rw-r--r-- | target/Makefile | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/target/Makefile b/target/Makefile index 91d5b2bc1..bffcabfe0 100644 --- a/target/Makefile +++ b/target/Makefile @@ -12,7 +12,7 @@ all: install # configuration when building. This is how it's done: # 1) fetch all ADK_KPACKAGE_KMOD_* vars into # .kernelconfig.modules and set them to "m", -# fetch all ADK_KERNELMOD_* vars into +# fetch all ADK_KERNEL_MOD_* vars into # .kernelconfig.modules and set them to "m" # 2) fetch all enabled ADK_KERNEL_* vars into # .kernelconfig.kernel (no conversion, as they are booleans) @@ -32,6 +32,10 @@ all: install # only if it does (so the timestamp stays intact) # 8) remove the temporary .kernelconfig.tmp ### +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_KERNEL_CUSTOMISING},y) config-prepare: $(TOPDIR)/.config @sed -n '/^ADK_KPACKAGE_KMOD/s//CONFIG/p' ${TOPDIR}/.config | \ @@ -61,6 +65,10 @@ ifneq ($(ADK_TARGET_CMDLINE),) @sed -i -e 's#^\(CONFIG_.*CMDLINE="\)\(.*\)"#\1\2 ${ADK_TARGET_CMDLINE}"#' \ ${BUILD_DIR}/.kernelconfig.board endif +ifneq ($(ADK_PACKAGE_CMDLINE),) + @sed -i -e 's#^\(CONFIG_.*CMDLINE="\)\(.*\)"#\1\2 ${ADK_PACKAGE_CMDLINE}"#' \ + ${BUILD_DIR}/.kernelconfig.board +endif ifeq ($(ADK_QUIET_KERNEL),y) @sed -i -e 's#^\(CONFIG_.*CMDLINE="\)\(.*\)"#\1\2 quiet"#' \ ${BUILD_DIR}/.kernelconfig.board |