Skip to contentSkip to conversation

arc: fix separate compilation of start.o

PATCH New Alexey Brodkin 1 participant 2 messages Apr 10, 2015 Synopsys ARC architecture

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arc: fix separate compilation of start.o

While testing "arc: make sure _start is in the beginning of .text section" I haven't done proper clean-up of built binaries and so missed another tiny bit that lead to the following error:
--->8---
LD u-boot
arc-linux-ld.bfd: cannot find arch/arc/lib/start.o Makefile:1107: recipe for target 'u-boot' failed
make: *** [u-boot] Error 1
--->8---

Fix is trivial: put "start.o" in "extra-y".

---
 arch/arc/lib/Makefile | 1 +
 1 file changed, 1 insertion(+)
arch/arc/lib/Makefile +1 -0
index 459bba9..e592802 100644
@@ -4,6 +4,7 @@
 # SPDX-License-Identifier:	GPL-2.0+
 #
 
+extra-y	= start.o
 head-y := start.o
 obj-y += cache.o
 obj-y += cpu.o
Signature · 1 line
2.1.0
author Applied
#1 lore raw

PATCH 1/1 arc: fix separate compilation of start.o

Quoted 22 lines · Alexey Brodkin

While testing "arc: make sure _start is in the beginning of .text section" I haven't done proper clean-up of built binaries and so missed another tiny bit that lead to the following error:
--->8---
LD u-boot
arc-linux-ld.bfd: cannot find arch/arc/lib/start.o Makefile:1107: recipe for target 'u-boot' failed
make: *** [u-boot] Error 1
--->8---

Fix is trivial: put "start.o" in "extra-y".

---
 arch/arc/lib/Makefile | 1 +
 1 file changed, 1 insertion(+)
arch/arc/lib/Makefile +0 -0
index 459bba9..e592802 100644

arch/arc/lib/Makefile line 10

Quoted 7 lines
arch/arc/lib/Makefile +1 -0
@@ -4,6 +4,7 @@
 # SPDX-License-Identifier:	GPL-2.0+
 #
 
+extra-y	= start.o
 head-y := start.o
 obj-y += cache.o
 obj-y += cpu.o

Applied, thanks.

-Alexey