summaryrefslogtreecommitdiff
path: root/target/Makefile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2015-09-02 15:52:02 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2015-09-02 15:55:11 +0200
commit1f94ff184c4fc6d74b8147370600e29a71415729 (patch)
treec2afec72181046f62cdef0521c1e1815db357f8e /target/Makefile
parent05374459533dd3d3a8e2bdfa5c68a791a893e290 (diff)
refactor kernel mini.config.
We do not need to manually set mini.config file anymore. Every target system, even Qemu emulating different models get it its own. Cleaner and simpler to add new targets.
Diffstat (limited to 'target/Makefile')
-rw-r--r--target/Makefile10
1 files changed, 5 insertions, 5 deletions
diff --git a/target/Makefile b/target/Makefile
index a2934682e..d6cfa0bf8 100644
--- a/target/Makefile
+++ b/target/Makefile
@@ -29,9 +29,9 @@ ifeq ($(ADK_TARGET_KERNEL_CUSTOMISING),y)
config-prepare: $(ADK_TOPDIR)/.config
@PATH='$(HOST_PATH)' sed -n '/^ADK_KERNEL/s//CONFIG/p' $(ADK_TOPDIR)/.config \
>$(BUILD_DIR)/.kernelconfig.kernel
- @if [ -f $(ADK_TARGET_ARCH)/kernel/$(ADK_TARGET_KERNEL_MINICONFIG) ];then \
+ @if [ -f $(ADK_TARGET_ARCH)/kernel/$(ADK_TARGET_SYSTEM) ];then \
cat $(ADK_TOPDIR)/target/linux/kernel.config \
- $(ADK_TARGET_ARCH)/kernel/$(ADK_TARGET_KERNEL_MINICONFIG) > $(BUILD_DIR)/.kernelconfig.board; \
+ $(ADK_TARGET_ARCH)/kernel/$(ADK_TARGET_SYSTEM) > $(BUILD_DIR)/.kernelconfig.board; \
else \
echo "no miniconfig found for target system"; \
exit 1; \
@@ -57,7 +57,7 @@ ifeq ($(ADK_RUNTIME_VERBOSE_KERNEL_SERIAL_VGA),y)
$(SED) 's#^\(CONFIG_.*CMDLINE="\)\(.*\)"#\1\2 console=$(ADK_RUNTIME_CONSOLE_SERIAL_DEVICE),$(ADK_RUNTIME_CONSOLE_SERIAL_SPEED) console=$(ADK_RUNTIME_CONSOLE_VGA_DEVICE)"#' \
$(BUILD_DIR)/.kernelconfig.board
endif
-ifeq ($(ADK_TARGET_SYSTEM_QEMU_M68K),y)
+ifeq ($(ADK_TARGET_SYSTEM_QEMU_M68K_Q800)$(ADK_TARGET_SYSTEM_QEMU_M68K_MCF5208),y)
@$(SED) 's#^\(CONFIG_.*BOOTPARAM_STRING="\)\(.*\)"#\1\2 ro $(FS_CMDLINE)"#' \
$(BUILD_DIR)/.kernelconfig.board
endif
@@ -103,9 +103,9 @@ endif
@-rm -f $(BUILD_DIR)/.kernelconfig.tmp
else
config-prepare: $(ADK_TOPDIR)/.config
- @if [ -f $(ADK_TARGET_ARCH)/kernel/$(ADK_TARGET_KERNEL_MINICONFIG) ];then \
+ @if [ -f $(ADK_TARGET_ARCH)/kernel/$(ADK_TARGET_SYSTEM) ];then \
cat $(ADK_TOPDIR)/target/linux/kernel.config \
- $(ADK_TARGET_ARCH)/kernel/$(ADK_TARGET_KERNEL_MINICONFIG) > $(BUILD_DIR)/.kernelconfig.board; \
+ $(ADK_TARGET_ARCH)/kernel/$(ADK_TARGET_SYSTEM) > $(BUILD_DIR)/.kernelconfig.board; \
else \
echo "no miniconfig found for target system"; \
exit 1; \