summaryrefslogtreecommitdiff
path: root/target/csky
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2017-12-27 19:56:17 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2017-12-27 19:56:43 +0100
commit1f87a166fafb2e195e0184b733928d50d258c1ab (patch)
treeaf15942ad79cba0d99a510406d5757fecaad9523 /target/csky
parent5fc248537e0512702be19ccead68208159c0e1d7 (diff)
csky: allow to compile kernel, start help text for qemu
Diffstat (limited to 'target/csky')
-rw-r--r--target/csky/Makefile9
-rw-r--r--target/csky/kernel/generic-csky1
-rw-r--r--target/csky/kernel/qemu-csky1
3 files changed, 11 insertions, 0 deletions
diff --git a/target/csky/Makefile b/target/csky/Makefile
index 3d8f8d42b..4c550b407 100644
--- a/target/csky/Makefile
+++ b/target/csky/Makefile
@@ -7,6 +7,11 @@ include $(ADK_TOPDIR)/mk/image.mk
KERNEL:=$(LINUX_DIR)/$(ADK_TARGET_KERNEL)
+QEMU_ARGS:=${ADK_QEMU_ARGS}
+ifeq ($(ADK_TARGET_CPU_CSKY_CK610),y)
+QEMU:=qemu-system-cskyv1
+endif
+
# target helper text
ifeq ($(ADK_TARGET_FS),archive)
targethelp:
@@ -25,6 +30,10 @@ endif
ifeq ($(ADK_TARGET_FS),initramfspiggyback)
targethelp:
@echo 'The kernel+initramfs file is: $(FW_DIR)/${TARGET_KERNEL}'
+ifeq ($(ADK_TARGET_QEMU),y)
+ @echo "Start qemu with following command line:"
+ @echo '${QEMU} ${QEMU_ARGS} -kernel $(FW_DIR)/$(TARGET_KERNEL)'
+endif
endif
ifeq ($(ADK_TARGET_FS),nfsroot)
targethelp:
diff --git a/target/csky/kernel/generic-csky b/target/csky/kernel/generic-csky
index f126bb9df..b85f755ac 100644
--- a/target/csky/kernel/generic-csky
+++ b/target/csky/kernel/generic-csky
@@ -1 +1,2 @@
CONFIG_CSKY=y
+CONFIG_SECTION_MISMATCH_WARN_ONLY=y
diff --git a/target/csky/kernel/qemu-csky b/target/csky/kernel/qemu-csky
index f126bb9df..b85f755ac 100644
--- a/target/csky/kernel/qemu-csky
+++ b/target/csky/kernel/qemu-csky
@@ -1 +1,2 @@
CONFIG_CSKY=y
+CONFIG_SECTION_MISMATCH_WARN_ONLY=y