summaryrefslogtreecommitdiffstats
path: root/package/elftosb/elftosb.mk
diff options
context:
space:
mode:
authorEric Jarrige <eric.jarrige@armadeus.org>2012-07-18 18:02:42 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2012-07-21 00:34:39 +0200
commitcc160a941ee2de5aa9bd4624dd56fd6b38bb29c9 (patch)
treeb7e62c090871a45482b796b21c648d9ece0a8b49 /package/elftosb/elftosb.mk
parent3d3ec6cfe1d1c0abacce65ba2f494aae98af263e (diff)
downloadbuildroot-cc160a941ee2de5aa9bd4624dd56fd6b38bb29c9.tar.gz
buildroot-cc160a941ee2de5aa9bd4624dd56fd6b38bb29c9.zip
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 thomas.petazzoni@free-electrons.com: * Add -m 0755 when installing binaries * the _CLEAN_CMDS is not supposed to uninstall things from the HOST_DIR. * Use 'host-generic-package' instead of 'GENTARGETS,host' Signed-off-by: Eric Jarrige <eric.jarrige@armadeus.org> Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/elftosb/elftosb.mk')
-rw-r--r--package/elftosb/elftosb.mk25
1 files changed, 25 insertions, 0 deletions
diff --git a/package/elftosb/elftosb.mk b/package/elftosb/elftosb.mk
new file mode 100644
index 0000000000..b2e50f72f2
--- /dev/null
+++ b/package/elftosb/elftosb.mk
@@ -0,0 +1,25 @@
+#############################################################
+#
+# 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 -m 0755 $(@D)/bld/linux/elftosb $(HOST_DIR)/usr/bin/elftosb
+ $(INSTALL) -D -m 0755 $(@D)/bld/linux/keygen $(HOST_DIR)/usr/bin/keygen
+ $(INSTALL) -D -m 0755 $(@D)/bld/linux/sbtool $(HOST_DIR)/usr/bin/sbtool
+endef
+
+define HOST_ELFTOSB_CLEAN_CMDS
+ rm -rf $(@D)/bld/linux
+endef
+
+$(eval $(host-generic-package))
+
OpenPOWER on IntegriCloud