diff options
Diffstat (limited to 'target/riscv64')
-rw-r--r-- | target/riscv64/Makefile | 10 | ||||
-rw-r--r-- | target/riscv64/kernel/sipeed-maix-bit | 9 | ||||
-rw-r--r-- | target/riscv64/systems/sipeed-maix-bit | 6 |
3 files changed, 25 insertions, 0 deletions
diff --git a/target/riscv64/Makefile b/target/riscv64/Makefile index 44dd98351..f7d493123 100644 --- a/target/riscv64/Makefile +++ b/target/riscv64/Makefile @@ -48,10 +48,17 @@ ifeq ($(ADK_TARGET_QEMU),y) @echo 'qemu-system-riscv64 ${QEMU_ARGS} -kernel $(FW_DIR)/$(TARGET_KERNEL)' endif endif +ifeq ($(ADK_TARGET_FS),nfsroot) +targethelp: + @echo 'The kernel file is: $(FW_DIR)/${TARGET_KERNEL}' + @echo "The RootFS tarball is: $(FW_DIR)/$(ROOTFSUSERTARBALL)" +endif kernel-strip: + @cp $(KERNEL) $(BUILD_DIR)/$(TARGET_KERNEL) kernel-install: kernel-strip + @cp $(BUILD_DIR)/$(TARGET_KERNEL) $(FW_DIR)/$(TARGET_KERNEL) # filesystem specific targets ifeq ($(ADK_TARGET_FS),archive) @@ -66,3 +73,6 @@ endif ifeq ($(ADK_TARGET_FS),initramfspiggyback) imageinstall: createinitramfs targethelp endif +ifeq ($(ADK_TARGET_FS),nfsroot) +imageinstall: kernel-install $(FW_DIR)/$(ROOTFSUSERTARBALL) targethelp +endif diff --git a/target/riscv64/kernel/sipeed-maix-bit b/target/riscv64/kernel/sipeed-maix-bit new file mode 100644 index 000000000..4ed48df2f --- /dev/null +++ b/target/riscv64/kernel/sipeed-maix-bit @@ -0,0 +1,9 @@ +CONFIG_RISCV=y +CONFIG_SOC_CANAAN=y +CONFIG_SOC_CANAAN_K210_DTB_BUILTIN=y +CONFIG_SOC_CANAAN_K210_DTB_SOURCE="sipeed_maix_bit" +CONFIG_SMP=y +CONFIG_NR_CPUS=2 +CONFIG_CMDLINE="earlycon console=ttySIF0" +CONFIG_CMDLINE_FORCE=y +CONFIG_SECTION_MISMATCH_WARN_ONLY=y diff --git a/target/riscv64/systems/sipeed-maix-bit b/target/riscv64/systems/sipeed-maix-bit new file mode 100644 index 000000000..8090c9c03 --- /dev/null +++ b/target/riscv64/systems/sipeed-maix-bit @@ -0,0 +1,6 @@ +config ADK_TARGET_SYSTEM_SIPEED_MAIX_BIT + bool "Sipeed MAiX Bit" + select ADK_TARGET_CPU_RISCV64 + select ADK_TARGET_KERNEL_IMAGE + help + Sipeed MAiX Bit support. |