]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
riscv: Make start.S available for all targets
authorBin Meng <bmeng.cn@gmail.com>
Wed, 26 Sep 2018 13:55:17 +0000 (06:55 -0700)
committerAndes <uboot@andestech.com>
Wed, 3 Oct 2018 09:48:14 +0000 (17:48 +0800)
Currently start.S is inside arch/riscv/cpu/ax25/, but it can be
common for all RISC-V targets.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Lukas Auer <lukas.auer@aisec.fraunhofer.de>
arch/riscv/Makefile
arch/riscv/cpu/Makefile
arch/riscv/cpu/ax25/Makefile
arch/riscv/cpu/start.S [moved from arch/riscv/cpu/ax25/start.S with 100% similarity]
arch/riscv/cpu/u-boot.lds

index af432e16ff5df582613883e13873da7f4876dfe0..8fb6a889d8dea302a5ef58e3869b5c5725bac63c 100644 (file)
@@ -3,7 +3,7 @@
 # Copyright (C) 2017 Andes Technology Corporation.
 # Rick Chen, Andes Technology Corporation <rick@andestech.com>
 
-head-y := arch/riscv/cpu/$(CPU)/start.o
+head-y := arch/riscv/cpu/start.o
 
 libs-y += arch/riscv/cpu/
 libs-y += arch/riscv/cpu/$(CPU)/
index 63de163e3fbe574ac30640051ab10889f6c5a601..2cc6757fcf8db245977ee0dc08debcf8fe30af62 100644 (file)
@@ -2,4 +2,6 @@
 #
 # Copyright (C) 2018, Bin Meng <bmeng.cn@gmail.com>
 
+extra-y = start.o
+
 obj-y += cpu.o
index c3f164c12262a9d8d52668f151b81852ce90bce1..2ab0342fe85105eef35320edb6a71cc7c6872f56 100644 (file)
@@ -3,6 +3,4 @@
 # Copyright (C) 2017 Andes Technology Corporation
 # Rick Chen, Andes Technology Corporation <rick@andestech.com>
 
-extra-y        = start.o
-
 obj-y  := cpu.o
index f414473e54bce6e3d77d975368fab28f8026ccc2..11bc4a738b676a6fdfe868c48e87e204373e53ef 100644 (file)
@@ -11,7 +11,7 @@ SECTIONS
 {
        . = ALIGN(4);
        .text : {
-               arch/riscv/cpu/ax25/start.o     (.text)
+               arch/riscv/cpu/start.o  (.text)
        }
 
        /* This needs to come before *(.text*) */