[uClibc] Re: Buildroot patch for SH3/SH3EB SH4EB

Volmat Alain avolmatjp at yahoo.co.jp
Wed Dec 8 13:39:52 UTC 2004


Hi all,

I didn't see any change to the CVS after concerning this patch. Mike told me about applying it ... 

as far as SH3 (Little/Big Endian) compilation and simple test worked (static link busybox).

Alain


--- Volmat Alain  からのメッセージ: Hi all,
 
 a little patch to enable compilation of the
 buildroot for
 SH3 SH3EB (Big Endian) and SH4 Big Endian.
 Compilation
 work fine for all four architecture (include SH4
 little
 endian) but I could only test the binary generated
 for the
 SH3 Big Endian since I do not have access to others
 (I'll
 be able to test SH3 Little endian next week but
 really
 don't have SH4).
 I noticed some compilation problems (reported on the
 mailing list recently) but at least I can say that
 it
 works fine using FC3 as a host machine.
 For package, I only test busybox (static) for now.
 The toolchain is gcc 3.4.2 + binutils 2.15.92.0.2
 based.
 
 By the way, I can also confirm that basic module
 loading
 works using busybox on a SH3 Big Endian (the busybox
 source code include a #error to inform that the Big
 Endian
 hasn't been tested. After removing this line it
 appends to
 work just fine. (I just tried rapidly so I'll need
 to test
 a bit more to ensure that it really works fine
 everytime,
 for now I just tried single 2.4.26 kernel module
 loading).
 
 Here's the patch, but since I couldn't test SH4EB
 and SH3
 maybe a SH3EB only patch would be better ?
 
 Alain
 
 > diff -Naur buildroot/Config.in
 buildroot_sh4le/Config.in
 --- buildroot/Config.in	2004-10-15
 16:11:54.000000000 +0900
 +++ buildroot_sh4le/Config.in	2004-11-20
 00:56:56.680421624 +0900
 @@ -36,9 +36,18 @@
  config BR2_powerpc
 	bool "powerpc"
 
 -config BR2_sh
 +config BR2_sh3
 +	bool "sh3"
 +
 +config BR2_sh3eb
 +	bool "sh3eb"
 +
 +config BR2_sh4
 	bool "sh4"
 
 +config BR2_sh4eb
 +	bool "sh4eb"
 +
  config BR2_sparc
 	bool "sparc"
 
 @@ -54,7 +63,10 @@
 	default "mips"  if BR2_mips
 	default "mipsel"  if BR2_mipsel
 	default "powerpc" if BR2_powerpc
 -	default "sh4"  if BR2_sh
 +	default "sh3"  if BR2_sh3
 +	default "sh3eb"  if BR2_sh3eb
 +	default "sh4"  if BR2_sh4
 +	default "sh4eb"  if BR2_sh4eb
 	default "sparc"  if BR2_sparc
 
 
 diff -Naur
 buildroot/toolchain/kernel-headers/kernel-headers.mk
 buildroot_sh4le/toolchain/kernel-headers/kernel-headers.mk
 ---
 buildroot/toolchain/kernel-headers/kernel-headers.mk
 2004-10-26 17:50:08.000000000 +0900
 +++
 buildroot_sh4le/toolchain/kernel-headers/kernel-headers.mk
 2004-11-20 00:57:53.846731024 +0900
 @@ -107,10 +107,22 @@
  ln -fs arch-ebsa285 arch; fi); \
 	elif [ "$(ARCH)" = "cris" ];then \
  (cd $(LINUX_HEADERS_DIR)/include; ln -fs
 asm-cris asm;) \
 +	elif [ "$(ARCH)" = "sh3" ];then \
 +	 (cd $(LINUX_HEADERS_DIR)/include; ln -fs
 asm-sh asm; \
 +	 cd asm; \
 +	 ln -s cpu-sh3 cpu) \
 +	elif [ "$(ARCH)" = "sh3eb" ];then \
 +	 (cd $(LINUX_HEADERS_DIR)/include; ln -fs
 asm-sh asm; \
 +	 cd asm; \
 +	 ln -s cpu-sh3 cpu) \
 	elif [ "$(ARCH)" = "sh4" ];then \
  (cd $(LINUX_HEADERS_DIR)/include; ln -fs
 asm-sh asm; \
  cd asm; \
  ln -s cpu-sh4 cpu) \
 +	elif [ "$(ARCH)" = "sh4eb" ];then \
 +	 (cd $(LINUX_HEADERS_DIR)/include; ln -fs
 asm-sh asm; \
 +	 cd asm; \
 +	 ln -s cpu-sh4 cpu) \
 	else \
  (cd $(LINUX_HEADERS_DIR)/include; ln -fs
 asm-$(ARCH)$(NOMMU) asm;) \
 	fi
 diff -Naur buildroot/toolchain/uClibc/uclibc.mk
 buildroot_sh4le/toolchain/uClibc/uclibc.mk
 --- buildroot/toolchain/uClibc/uclibc.mk	2004-10-15
 23:39:40.000000000 +0900
 +++ buildroot_sh4le/toolchain/uClibc/uclibc.mk
 2004-11-20 00:58:14.894531272 +0900
 @@ -26,7 +26,7 @@
 	-e 's/ppc/powerpc/g' \
 	-e 's/v850.*/v850/g' \
 	-e 's/sh64/sh/' \
 -		-e 's/sh[234]/sh/' \
 +		-e 's/sh[234].*/sh/' \
 	-e 's/mips.*/mips/' \
 	-e 's/mipsel.*/mips/' \
 	-e 's/cris.*/cris/' \
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.busybox.net/pipermail/uclibc/attachments/20041208/37c2e375/attachment-0001.htm 


More information about the uClibc mailing list