summaryrefslogtreecommitdiff
path: root/recipes-bsp/barebox/barebox-hosttools-native_2017.12.0-phy6.bb
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-bsp/barebox/barebox-hosttools-native_2017.12.0-phy6.bb')
-rwxr-xr-xrecipes-bsp/barebox/barebox-hosttools-native_2017.12.0-phy6.bb38
1 files changed, 38 insertions, 0 deletions
diff --git a/recipes-bsp/barebox/barebox-hosttools-native_2017.12.0-phy6.bb b/recipes-bsp/barebox/barebox-hosttools-native_2017.12.0-phy6.bb
new file mode 100755
index 0000000..60e58d2
--- /dev/null
+++ b/recipes-bsp/barebox/barebox-hosttools-native_2017.12.0-phy6.bb
@@ -0,0 +1,38 @@
+require barebox_${PV}.bb
+
+SUMMERY = "barebox host tools"
+PROVIDES = "${PN}"
+FILESEXTRAPATHS_prepend := "${THISDIR}/barebox/:"
+
+DEPENDS += "libusb-native openssl-native zlib-native"
+
+inherit deploy pkgconfig
+
+do_patch_append() {
+ bb.build.exec_func('do_fix_pkg_config', d)
+}
+
+do_fix_pkg_config() {
+ find ${S}/scripts/ -name Makefile -print0 | xargs -0 sed -i 's/pkg-config/pkg-config-native/g'
+}
+
+do_configure_append() {
+ kconfig_set ARCH_IMX_IMXIMAGE y
+ kconfig_set ARCH_IMX_IMXIMAGE_SSL_SUPPORT y
+ kconfig_set ARCH_IMX_USBLOADER y
+}
+
+do_compile() {
+ oe_runmake scripts
+}
+
+deltask do_install
+
+inherit nopackages
+
+do_deploy[sstate-outputdirs] = "${DEPLOY_DIR_TOOLS}"
+do_deploy () {
+ install -d ${DEPLOY_DIR_TOOLS}
+ install -m 755 ${B}/scripts/imx/imx-image ${DEPLOY_DIR_TOOLS}/imx-image-${PV}
+ install -m 755 ${B}/scripts/imx/imx-usb-loader ${DEPLOY_DIR_TOOLS}/imx-usb-loader-${PV}
+}