summaryrefslogtreecommitdiff
path: root/recipes-bsp/barebox/barebox-hosttools-native_2017.12.0-phy5.bb
blob: 60e58d2caa46920e59d8e388f8f7504ad24eabe0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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}
}