Skip to contentSkip to conversation

Add (Freescale) elftosb host package

PATCH New Eric Jarrige 2 participants 5 messages Mar 12, 2012 – Mar 13, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Add (Freescale) elftosb host package

Elftosb is a Freescale toolset to build binary image files (like U-Boot.sb) to be used with CPUs imx23, imx28, stp37xx

---
 package/elftosb/elftosb.mk                         |   28 ++++++++++++++++++++
 .../elftosb/elftosb10.12.01-fixes_includes.patch   |   13 +++++++++
 2 files changed, 41 insertions(+), 0 deletions(-)
 create mode 100644 package/elftosb/elftosb.mk
 create mode 100644 package/elftosb/elftosb10.12.01-fixes_includes.patch
package/elftosb/elftosb.mk new file +28 -0
new file mode 100644
index 0000000..75b95a5
@@ -0,0 +1,28 @@
+#############################################################
+#
+# elftosb
+#
+#############################################################
+ELFTOSB_VERSION = 10.12.01
+ELFTOSB_SOURCE = elftosb-$(ELFTOSB_VERSION).tar.gz
+ELFTOSB_SITE = http://repository.timesys.com/buildsources/e/elftosb/elftosb-$(ELFTOSB_VERSION)
+
+define HOST_ELFTOSB_BUILD_CMDS
+	$(HOST_MAKE_ENV) $(MAKE) -C $(@D) all
+endef
+
+define HOST_ELFTOSB_INSTALL_CMDS
+	$(INSTALL) -D $(@D)/bld/linux/elftosb $(HOST_DIR)/usr/bin/elftosb
+	$(INSTALL) -D $(@D)/bld/linux/keygen $(HOST_DIR)/usr/bin/keygen
+	$(INSTALL) -D $(@D)/bld/linux/sbtool $(HOST_DIR)/usr/bin/sbtool
+endef
+
+define HOST_ELFTOSB_CLEAN_CMDS
+	rm -rf $(@D)/bld/linux
+	rm -f $(HOST_DIR)/usr/bin/elftosb
+	rm -f $(HOST_DIR)/usr/bin/keygen
+	rm -f $(HOST_DIR)/usr/bin/sbtool
+endef
+
+$(eval $(call GENTARGETS,host))
+
package/elftosb/elftosb10.12.01-fixes_includes.patch new file +13 -0
new file mode 100644
index 0000000..5e31233
@@ -0,0 +1,13 @@
+Index: host-elftosb-10.12.01/common/stdafx.h
+===================================================================
+--- host-elftosb-10.12.01.orig/common/stdafx.h	2012-01-30 12:43:35.000000000 +0100
++++ host-elftosb-10.12.01/common/stdafx.h	2012-01-30 12:43:54.000000000 +0100
+@@ -27,7 +27,7 @@
+ // For Linux systems only, types.h only defines the signed
+ // integer types.  This is not professional code.
+ // Update: They are defined in the header files in the more recent version of redhat enterprise gcc.
+-#include "/usr/include/sys/types.h"
++#include <sys/types.h>
+ #include <stdint.h>
+ //typedef unsigned long uint32_t;
+ //typedef unsigned short uint16_t;
Signature · 1 line
1.7.2.5
#1 lore raw

PATCH 1/1 Add (Freescale) elftosb host package

Hello Eric,

Thanks for this patch. See comments below.

Le Mon, 12 Mar 2012 14:55:07 +0100,
Eric Jarrige <[email protected]> a ?crit :

package/elftosb/elftosb10.12.01-fixes_includes.patch

Quoted 5 lines
package/elftosb/elftosb10.12.01-fixes_includes.patch new file +0 -0
new file mode 100644
index 0000000..5e31233

This patch should include a description and a Signed-off-by line.

Moreover, who is using this host-elftosb package at the moment? Do you intend to send some further package to the linux package to make use of it? Or should this package be presented to the user in the "Host utilities" submenu?

Best regards,

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 Add (Freescale) elftosb host package

Hi Thomas,

Quoted 7 lines · Thomas Petazzoni

Hello Eric,

Thanks for this patch. See comments below.

Le Mon, 12 Mar 2012 14:55:07 +0100,
Eric Jarrige <[email protected]> a ?crit :

Quoted 7 lines

package/elftosb/elftosb10.12.01-fixes_includes.patch

Quoted 5 lines
package/elftosb/elftosb10.12.01-fixes_includes.patch new file +0 -0
new file mode 100644
index 0000000..5e31233

This patch should include a description and a Signed-off-by line.

Correct, I will fix it.

Quoted 6 lines

Moreover, who is using this host-elftosb package at the moment? Do you intend to send some further package to the linux package to make use of it? Or should this package be presented to the user in the "Host utilities" submenu?

I have the plan to send another patch to support the u-boot.sb binary file format that will depend on this host tool.
The new apf28 board will also use this .sb binary file format and the elftosb tool. It also possible to package the linux kernel with this tool for some CPUs but for the time being that is not in my plan.
I do not know if this can be useful to have it in a user submenu.

Thanks for your response.

Best regards,
Eric

#3 lore raw

PATCH 1/1 Add (Freescale) elftosb host package

Le Tue, 13 Mar 2012 00:13:53 +0100,
Eric Jarrige <[email protected]> a ?crit :

Quoted 2 lines

I have the plan to send another patch to support the u-boot.sb binary file format that will depend on this host tool.

Ok, good. Would it be possible to post the patch adding the elftosb tool together with a patch adding this u-boot.sb support? Of course, this should be two separate patches, but sent together.

Quoted 4 lines

The new apf28 board will also use this .sb binary file format and the elftosb tool. It also possible to package the linux kernel with this tool for some CPUs but for the time being that is not in my plan.
I do not know if this can be useful to have it in a user submenu.

As long as it is used somewhere as a dependency for something, then it's fine.

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
#4 lore raw

PATCH 1/1 Add (Freescale) elftosb host package

Hi Thomas,

Quoted 4 lines · Thomas Petazzoni

Ok, good. Would it be possible to post the patch adding the elftosb tool together with a patch adding this u-boot.sb support? Of course, this should be two separate patches, but sent together.

Ok I add the u-boot.sb patch to my next submit.

Best regards,
Eric