Skip to contentSkip to conversation

elf2flt: upgrade to latest version

PATCH New Gustavo Zacarias 2 participants 4 messages Aug 13, 2013 – Aug 26, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 elf2flt: upgrade to latest version

Upgrade to the latest uclinux CVS snapshot, gives us blackfin support.

---
 package/elf2flt/Config.in.host     |    2 +-
 package/elf2flt/src/Makefile.in    |   77 +-
 package/elf2flt/src/README         |    2 +-
 package/elf2flt/src/compress.c     |  198 ++
 package/elf2flt/src/compress.h     |   44 +
 package/elf2flt/src/config.sub     |    8 +-
 package/elf2flt/src/configure      | 5934 +++++++++++++++++++++++-------------
 package/elf2flt/src/configure.in   |  112 +-
 package/elf2flt/src/elf2flt.c      |  699 ++---
 package/elf2flt/src/elf2flt.ld     |  179 --
 package/elf2flt/src/elf2flt.ld.in  |  210 ++
 package/elf2flt/src/flat.h         |    2 +
 package/elf2flt/src/flthdr.c       |  304 +-
 package/elf2flt/src/ld-elf2flt.c   |  580 ++++
 package/elf2flt/src/ld-elf2flt.in  |   38 +-
 package/elf2flt/src/maketarball.sh |   12 -
 package/elf2flt/src/stubs.c        |  129 +-
 package/elf2flt/src/stubs.h        |   75 +
 18 files changed, 5568 insertions(+), 3037 deletions(-)
 create mode 100644 package/elf2flt/src/compress.c
 create mode 100644 package/elf2flt/src/compress.h
 delete mode 100644 package/elf2flt/src/elf2flt.ld
 create mode 100644 package/elf2flt/src/elf2flt.ld.in
 create mode 100644 package/elf2flt/src/ld-elf2flt.c
 delete mode 100755 package/elf2flt/src/maketarball.sh
 create mode 100644 package/elf2flt/src/stubs.h
package/elf2flt/Config.in.host +1 -1
index 31a6c7f..dad48d8 100644
@@ -1,6 +1,6 @@
 config BR2_PACKAGE_HOST_ELF2FLT
 	bool "Enable elf2flt support?"
-	depends on BR2_arm || BR2_sh || BR2_sparc
+	depends on BR2_arm || BR2_bfin || BR2_sh || BR2_sparc
 	help
 	  uCLinux uses a Binary Flat format commonly known as BFLT. It
 	  is a relatively simple and lightweight executable format
package/elf2flt/src/Makefile.in +55 -22

116 lines not on this page · raw message

package/elf2flt/src/README +1 -1
index 6e8a687..592d07a 100644
@@ -11,7 +11,7 @@ LICENSE.TXT for more details.
 
 Elf2flt with PIC, ZFLAT and full reloc support. Currently supported
 targets include: m68k/ColdFire, ARM, Sparc, NEC v850, MicroBlaze, 
-h8300 and SuperH.
+h8300, SuperH, and Blackfin.
 
 COMPILING:
 
package/elf2flt/src/compress.c new file +198 -0

198 lines not on this page · raw message

package/elf2flt/src/compress.h new file +44 -0

44 lines not on this page · raw message

package/elf2flt/src/config.sub +4 -4
index 2072457..4279c84 100755
@@ -262,7 +262,7 @@ case $basic_machine in
 	| pdp10 | pdp11 | pj | pjl \
 	| powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
 	| pyramid \
-	| sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
+	| sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
 	| sh64 | sh64le \
 	| sparc | sparc64 | sparc64b | sparc86x | sparclet | sparclite \
 	| sparcv8 | sparcv9 | sparcv9b \
@@ -342,8 +342,8 @@ case $basic_machine in
 	| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
 	| pyramid-* \
 	| romp-* | rs6000-* \
-	| sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* \
-	| sheb-* | shbe-* | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
+	| sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \
+	| shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
 	| sparc-* | sparc64-* | sparc64b-* | sparc86x-* | sparclet-* \
 	| sparclite-* \
 	| sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
@@ -1097,7 +1097,7 @@ case $basic_machine in
 	we32k)
 		basic_machine=we32k-att
 		;;
-	sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele)
+	sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele)
 		basic_machine=sh-unknown
 		;;
 	sh64)
package/elf2flt/src/configure +3746 -2188

2,601 lines not on this page · raw message

package/elf2flt/src/configure.in +102 -10

112 lines not on this page · raw message

package/elf2flt/src/elf2flt.c +241 -458

699 lines not on this page · raw message

package/elf2flt/src/elf2flt.ld deleted +0 -179

179 lines not on this page · raw message

package/elf2flt/src/elf2flt.ld.in new file +210 -0

210 lines not on this page · raw message

package/elf2flt/src/flat.h +2 -0
index 3cc502d..2fef529 100644

Lines of this file are not shown. View the raw message.

package/elf2flt/src/flthdr.c +151 -153

304 lines not on this page · raw message

package/elf2flt/src/ld-elf2flt.c new file +580 -0

580 lines not on this page · raw message

package/elf2flt/src/ld-elf2flt.in +30 -8
index b876636..fd1faed 100644

Lines of this file are not shown. View the raw message.

package/elf2flt/src/maketarball.sh deleted +0 -12
deleted file mode 100755
index 1014860..0000000

Lines of this file are not shown. View the raw message.

package/elf2flt/src/stubs.c +128 -1

129 lines not on this page · raw message

package/elf2flt/src/stubs.h new file +75 -0

75 lines not on this page · raw message

The rest of this diff is not shown. View the raw message.

Signature · 1 line
1.8.1.5

Part of the diff is not shown here. View the raw message.

#1 lore raw

PATCH 1/1 elf2flt: upgrade to latest version

Dear Gustavo Zacarias,

Quoted 22 lines · Gustavo Zacarias

Upgrade to the latest uclinux CVS snapshot, gives us blackfin support.

---
 package/elf2flt/Config.in.host     |    2 +-
 package/elf2flt/src/Makefile.in    |   77 +-
 package/elf2flt/src/README         |    2 +-
 package/elf2flt/src/compress.c     |  198 ++
 package/elf2flt/src/compress.h     |   44 +
 package/elf2flt/src/config.sub     |    8 +-
 package/elf2flt/src/configure      | 5934 +++++++++++++++++++++++-------------
 package/elf2flt/src/configure.in   |  112 +-
 package/elf2flt/src/elf2flt.c      |  699 ++---
 package/elf2flt/src/elf2flt.ld     |  179 --
 package/elf2flt/src/elf2flt.ld.in  |  210 ++
 package/elf2flt/src/flat.h         |    2 +
 package/elf2flt/src/flthdr.c       |  304 +-
 package/elf2flt/src/ld-elf2flt.c   |  580 ++++
 package/elf2flt/src/ld-elf2flt.in  |   38 +-
 package/elf2flt/src/maketarball.sh |   12 -
 package/elf2flt/src/stubs.c        |  129 +-
 package/elf2flt/src/stubs.h        |   75 +
Quoted 8 lines
 18 files changed, 5568 insertions(+), 3037 deletions(-)
 create mode 100644 package/elf2flt/src/compress.c
 create mode 100644 package/elf2flt/src/compress.h
 delete mode 100644 package/elf2flt/src/elf2flt.ld
 create mode 100644 package/elf2flt/src/elf2flt.ld.in
 create mode 100644 package/elf2flt/src/ld-elf2flt.c
 delete mode 100755 package/elf2flt/src/maketarball.sh
 create mode 100644 package/elf2flt/src/stubs.h

Instead of having the source code within Buildroot, can't we fetch it from whatever CVS/Git repository it is available from?

Thanks,

Thomas

Signature · 4 lines
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
#2 lore raw

PATCH 1/1 elf2flt: upgrade to latest version

Quoted 2 lines · Thomas Petazzoni

Instead of having the source code within Buildroot, can't we fetch it from whatever CVS/Git repository it is available from?

I guesed there was some historic reason for that.
Anyway the upstream repository is CVS, we'll need to add host-cvs or make the check in dependencies.sh, and add the site method for it. What's preferred for this cases? (deps would be better IMHO) Regards.

#3 lore raw

PATCH 1/1 elf2flt: upgrade to latest version

Dear Gustavo Zacarias,

Quoted 8 lines · Gustavo Zacarias
Quoted 2 lines · Thomas Petazzoni

Instead of having the source code within Buildroot, can't we fetch it from whatever CVS/Git repository it is available from?

I guesed there was some historic reason for that.
Anyway the upstream repository is CVS, we'll need to add host-cvs or make the check in dependencies.sh, and add the site method for it. What's preferred for this cases? (deps would be better IMHO)

Either we find some Git mirror for it, or yes as you suggest, add a cvs download method. Just like git/hg and al., it will automatically integrate with the DL_TOOLS mechanism in support/dependencies/dependencies.sh.

Thanks!

Thomas

Signature · 4 lines
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com