diff options
Diffstat (limited to 'target/nios2')
-rw-r--r-- | target/nios2/Makefile | 4 | ||||
-rw-r--r-- | target/nios2/kernel/qemu-nios2 | 8 |
2 files changed, 11 insertions, 1 deletions
diff --git a/target/nios2/Makefile b/target/nios2/Makefile index f348c6cd7..6e11c30ba 100644 --- a/target/nios2/Makefile +++ b/target/nios2/Makefile @@ -6,6 +6,8 @@ include $(ADK_TOPDIR)/mk/kernel-build.mk include $(ADK_TOPDIR)/mk/image.mk KERNEL:=$(LINUX_DIR)/vmlinux +OSTRIP:=-R .reginfo -R .notes -R .note -R .comment -R .mdebug -R .note.gnu.build-id + QEMU_ARGS+=-M 10m50-ghrd -dtb $(FW_DIR)/10m50_devboard.dtb QEMU_ARGS+=${ADK_QEMU_ARGS} @@ -51,7 +53,7 @@ endif # image creation and kernel install kernel-strip: - cp $(KERNEL) $(BUILD_DIR)/$(TARGET_KERNEL) + $(TARGET_CROSS)objcopy $(OSTRIP) -S $(KERNEL) $(BUILD_DIR)/$(TARGET_KERNEL) kernel-install: kernel-strip @cp $(BUILD_DIR)/$(TARGET_KERNEL) $(FW_DIR)/$(TARGET_KERNEL) diff --git a/target/nios2/kernel/qemu-nios2 b/target/nios2/kernel/qemu-nios2 index e7515909e..a02954b48 100644 --- a/target/nios2/kernel/qemu-nios2 +++ b/target/nios2/kernel/qemu-nios2 @@ -1 +1,9 @@ CONFIG_NIOS2=y +CONFIG_NIOS2_MEM_BASE=0x8000000 +CONFIG_NIOS2_HW_MUL_SUPPORT=y +CONFIG_NIOS2_HW_DIV_SUPPORT=y +CONFIG_CUSTOM_CACHE_SETTINGS=y +CONFIG_NIOS2_DCACHE_SIZE=0x8000 +CONFIG_NIOS2_ICACHE_SIZE=0x8000 +CONFIG_SERIAL_OF_PLATFORM=y +CONFIG_SERIAL_ALTERA_JTAGUART=y |