Skip to contentSkip to conversation

[U-Boot] [PATCH v3 0/2]

PATCH New Masahiro Yamada 3 participants 6 messages Jul 15, 2015 – Jul 28, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

v3 cover [U-Boot] [PATCH v3 0/2]

1/2: refactors a little because NDS32 actually need not the symbolic link 2/2: introduce a new config to avoid broken symbolic links.

Masahiro Yamada (2):
nds32: include <asm/arch-*/*.h> instead of <asm/arch/*.h>
kbuild: create symbolic link only for ARM, AVR32, SPARC, PowerPC, x86

 arch/Kconfig                 | 7 +++++++
 arch/powerpc/Kconfig         | 3 +++
 include/configs/adp-ag101.h  | 2 +-
 include/configs/adp-ag101p.h | 2 +-
 include/configs/adp-ag102.h  | 2 +-
 scripts/Makefile.autoconf    | 2 ++
 6 files changed, 15 insertions(+), 3 deletions(-)
Signature · 1 line
1.9.1
#1 lore raw

PATCH v3 1/2 nds32: include <asm/arch-*/*.h> instead of <asm/arch/*.h>

There are only two SoC-specific headers for this architecture:
- arch/nds32/include/asm/arch-ag101/ag101.h
- arch/nds32/include/asm/arch-ag102/ag102.h

Those two have different file names, so there is no advantage to include them via symbolic linked directory.

---

Changes in v3: None
Changes in v2: None

 include/configs/adp-ag101.h  | 2 +-
 include/configs/adp-ag101p.h | 2 +-
 include/configs/adp-ag102.h  | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
include/configs/adp-ag101.h +1 -1
index 4d52ba1..141fc99 100644
@@ -9,7 +9,7 @@
 #ifndef __CONFIG_H
 #define __CONFIG_H
 
-#include <asm/arch/ag101.h>
+#include <asm/arch-ag101/ag101.h>
 
 /*
  * CPU and Board Configuration Options
include/configs/adp-ag101p.h +1 -1
index 06860b5..4296c6b 100644
@@ -9,7 +9,7 @@
 #ifndef __CONFIG_H
 #define __CONFIG_H
 
-#include <asm/arch/ag101.h>
+#include <asm/arch-ag101/ag101.h>
 
 /*
  * CPU and Board Configuration Options
include/configs/adp-ag102.h +1 -1
index 026696c..0c7573a 100644
@@ -8,7 +8,7 @@
 #ifndef __CONFIG_H
 #define __CONFIG_H
 
-#include <asm/arch/ag102.h>
+#include <asm/arch-ag102/ag102.h>
 
 /*
  * CPU and Board Configuration Options
Signature · 1 line
1.9.1
#2 lore raw

PATCH v3 1/2 nds32: include <asm/arch-*/*.h> instead of <asm/arch/*.h>

Quoted 8 lines · Masahiro Yamada

There are only two SoC-specific headers for this architecture:
- arch/nds32/include/asm/arch-ag101/ag101.h
- arch/nds32/include/asm/arch-ag102/ag102.h

Those two have different file names, so there is no advantage to include them via symbolic linked directory.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150728/581261f7/attachment.sig>
#3 lore raw

PATCH v3 2/2 kbuild: create symbolic link only for ARM, AVR32, SPARC, PowerPC, x86

In reply to Masahiro Yamada

The symbolic link to SoC/CPU specific header directory is created during the build, while it is only necessary for ARM, AVR32, SPARC, x86, and some CPUs of PowerPC. For the other architectures, it just results in a broken symbolic link.

Introduce CONFIG_CREATE_ARCH_SYMLINK to not create unneeded symbolic links.

---

Changes in v3:
- Fix AVR32 build error
- Rebase on u-boot/master (commit 4905dfc)

Changes in v2:
- Use 'ifdef CONFIG_CREATE_ARCH_SYMLINK' for readability

 arch/Kconfig              | 7 +++++++
 arch/powerpc/Kconfig      | 3 +++
 scripts/Makefile.autoconf | 2 ++
 3 files changed, 12 insertions(+)
arch/Kconfig +7 -0
index afa1d6c..e952bb1 100644
@@ -1,3 +1,6 @@
+config CREATE_ARCH_SYMLINK
+	bool
+
 config HAVE_GENERIC_BOARD
 	bool
 
@@ -18,12 +21,14 @@ config ARC
 
 config ARM
 	bool "ARM architecture"
+	select CREATE_ARCH_SYMLINK
 	select HAVE_PRIVATE_LIBGCC if !ARM64
 	select HAVE_GENERIC_BOARD
 	select SUPPORT_OF_CONTROL
 
 config AVR32
 	bool "AVR32 architecture"
+	select CREATE_ARCH_SYMLINK
 	select HAVE_GENERIC_BOARD
 	select SYS_GENERIC_BOARD
 
@@ -84,9 +89,11 @@ config SH
 
 config SPARC
 	bool "SPARC architecture"
+	select CREATE_ARCH_SYMLINK
 
 config X86
 	bool "x86 architecture"
+	select CREATE_ARCH_SYMLINK
 	select HAVE_PRIVATE_LIBGCC
 	select HAVE_GENERIC_BOARD
 	select SYS_GENERIC_BOARD
arch/powerpc/Kconfig +3 -0
index 3b3f446..18451d3 100644
@@ -22,9 +22,11 @@ config MPC8260
 
 config MPC83xx
 	bool "MPC83xx"
+	select CREATE_ARCH_SYMLINK
 
 config MPC85xx
 	bool "MPC85xx"
+	select CREATE_ARCH_SYMLINK
 
 config MPC86xx
 	bool "MPC86xx"
@@ -34,6 +36,7 @@ config 8xx
 
 config 4xx
 	bool "PPC4xx"
+	select CREATE_ARCH_SYMLINK
 
 endchoice
 
scripts/Makefile.autoconf +2 -0
index 36bfa17..d668982 100644
@@ -107,6 +107,7 @@ include/config.h: scripts/Makefile.autoconf create_symlink FORCE
 # Otherwise, create a symbolic link to arch/$(ARCH)/include/asm/arch-$(SOC).
 PHONY += create_symlink
 create_symlink:
+ifdef CONFIG_CREATE_ARCH_SYMLINK
 ifneq ($(KBUILD_SRC),)
 	$(Q)mkdir -p include/asm
 	$(Q)if [ -d $(KBUILD_SRC)/arch/$(ARCH)/mach-$(SOC)/include/mach ]; then	\
@@ -123,6 +124,7 @@ else
 	fi;								\
 	ln -fsn $$dest arch/$(ARCH)/include/asm/arch
 endif
+endif
 
 PHONY += FORCE
 FORCE:
Signature · 1 line
1.9.1
#4 lore raw

PATCH v3 2/2 kbuild: create symbolic link only for ARM, AVR32, SPARC, PowerPC, x86

Quoted 15 lines · Masahiro Yamada

The symbolic link to SoC/CPU specific header directory is created during the build, while it is only necessary for ARM, AVR32, SPARC, x86, and some CPUs of PowerPC. For the other architectures, it just results in a broken symbolic link.

Introduce CONFIG_CREATE_ARCH_SYMLINK to not create unneeded symbolic links.

---

Changes in v3:
- Fix AVR32 build error
- Rebase on u-boot/master (commit 4905dfc)

Quoted 7 lines

Changes in v2:
- Use 'ifdef CONFIG_CREATE_ARCH_SYMLINK' for readability

 arch/Kconfig              | 7 +++++++
 arch/powerpc/Kconfig      | 3 +++
 scripts/Makefile.autoconf | 2 ++
 3 files changed, 12 insertions(+)
#5 lore raw

PATCH v3 2/2 kbuild: create symbolic link only for ARM, AVR32, SPARC, PowerPC, x86

In reply to Masahiro Yamada
Quoted 10 lines · Masahiro Yamada

The symbolic link to SoC/CPU specific header directory is created during the build, while it is only necessary for ARM, AVR32, SPARC, x86, and some CPUs of PowerPC. For the other architectures, it just results in a broken symbolic link.

Introduce CONFIG_CREATE_ARCH_SYMLINK to not create unneeded symbolic links.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150728/2a7e0d83/attachment.sig>