Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/2] Add (Freescale) elftosb host package
@ 2012-07-18 16:02 Maxime Ripard
  2012-07-18 16:02 ` [Buildroot] [PATCH 2/2] Add MXS bootlets package Maxime Ripard
  2012-07-20 22:37 ` [Buildroot] [PATCH 1/2] Add (Freescale) elftosb host package Thomas Petazzoni
  0 siblings, 2 replies; 10+ messages in thread
From: Maxime Ripard @ 2012-07-18 16:02 UTC (permalink / raw)
  To: buildroot

From: Eric Jarrige <eric.jarrige@armadeus.org>

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

Signed-off-by: Eric Jarrige <eric.jarrige@armadeus.org>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
---
 package/elftosb/elftosb.mk                         |   28 ++++++++++++++++++++
 .../elftosb/elftosb10.12.01-fixes_includes.patch   |   19 +++++++++++++
 2 files changed, 47 insertions(+)
 create mode 100644 package/elftosb/elftosb.mk
 create mode 100644 package/elftosb/elftosb10.12.01-fixes_includes.patch

diff --git a/package/elftosb/elftosb.mk b/package/elftosb/elftosb.mk
new file mode 100644
index 0000000..75b95a5
--- /dev/null
+++ b/package/elftosb/elftosb.mk
@@ -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))
+
diff --git a/package/elftosb/elftosb10.12.01-fixes_includes.patch b/package/elftosb/elftosb10.12.01-fixes_includes.patch
new file mode 100644
index 0000000..eaf8eba
--- /dev/null
+++ b/package/elftosb/elftosb10.12.01-fixes_includes.patch
@@ -0,0 +1,19 @@
+This patch uses system include files instead of a hard coded system path to fixe
+potential compilation failure on systems that do not populate system header
+files in /usr/include/..
+
+Signed-off-by: Eric Jarrige <eric.jarrige@armadeus.org>
+---
+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;
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 10+ messages in thread
* [Buildroot] [PATCH 0/2] add u-boot.sb file format and elftosb tools
@ 2012-03-13 12:52 Eric Jarrige
  2012-03-13 12:52 ` [Buildroot] [PATCH 1/2] Add (Freescale) elftosb host package Eric Jarrige
  0 siblings, 1 reply; 10+ messages in thread
From: Eric Jarrige @ 2012-03-13 12:52 UTC (permalink / raw)
  To: buildroot

These patches add support for the Freescale "Safe Boot" file format:
- add elftosb host tools to package the .sb binary files 
- add u-boot.sb binary format in BR menuconfig

Eric Jarrige (2):
  Add (Freescale) elftosb host package
  u-boot: add support for u-boot.sb file format

 boot/uboot/Config.in                               |    3 ++
 boot/uboot/uboot.mk                                |    4 +++
 package/elftosb/elftosb.mk                         |   28 ++++++++++++++++++++
 .../elftosb/elftosb10.12.01-fixes_includes.patch   |   19 +++++++++++++
 4 files changed, 54 insertions(+), 0 deletions(-)
 create mode 100644 package/elftosb/elftosb.mk
 create mode 100644 package/elftosb/elftosb10.12.01-fixes_includes.patch

-- 
1.7.2.5

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2012-07-20 22:37 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-18 16:02 [Buildroot] [PATCH 1/2] Add (Freescale) elftosb host package Maxime Ripard
2012-07-18 16:02 ` [Buildroot] [PATCH 2/2] Add MXS bootlets package Maxime Ripard
2012-07-20 22:37   ` Thomas Petazzoni
2012-07-20 22:37 ` [Buildroot] [PATCH 1/2] Add (Freescale) elftosb host package Thomas Petazzoni
  -- strict thread matches above, loose matches on Subject: below --
2012-03-13 12:52 [Buildroot] [PATCH 0/2] add u-boot.sb file format and elftosb tools Eric Jarrige
2012-03-13 12:52 ` [Buildroot] [PATCH 1/2] Add (Freescale) elftosb host package Eric Jarrige
2012-03-13 15:10   ` Thomas Petazzoni
2012-03-14  0:05   ` Arnout Vandecappelle
2012-03-14  9:41     ` Thomas Petazzoni
2012-03-14 11:11       ` Luca Ceresoli
2012-03-14 11:57         ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox