Skip to content

Instantly share code, notes, and snippets.

@netskink netskink/Goal Secret
Last active Sep 7, 2016

What would you like to do?
trying to build a host sdk which includes some custom host tools and a target variant which uses those tools
DESCRIPTION = "pcmx bitbake test application"
SUMMARY = "pcmx native, nativesdk and target build"
SECTION = "examples"
PR = "r0"
# maybe depends is wrong, orig depened upon opencv
# this will cause the cmake to be build for target which we don't want.
# DEPENDS = "cmake"
DEPENDS = "nativesdk-gcc"
# PCMX depends upon libpcap-dev. How to add if DEPENDS is not the method?
SRCREV_FORMAT ?= "d3_d3v16_pcmx"
SRCREV_d3v16 ?= "${AUTOREV}"
SRCREV_pcmx-native ?= "${AUTOREV}"
PV = "1.0.0+git${SRCPV}"
# My goal is to create a src dir like this
# git
# pcmx
# d3
# d3v16
# And have the cmake build kick off in the pcmx directory.
# This will create the dir structure above.
SRC_URI = " \
git://ssh@devsupport:22/tfs/DefaultCollection/jfdtesty/_git/d3;protocol=ssh;destsuffix=git/d3 \
git://ssh@devsupport:22/tfs/DefaultCollection/jfdtesty/_git/d3v16;protocol=ssh;destsuffix=git/d3v16 \
git://ssh@devsupport:22/tfs/DefaultCollection/jfdtesty/_git/pcmx;protocol=ssh;destsuffix=git/pcmx;branch=testy \
#EXTRA_OECMAKE = " -G 'Unix Makefiles'"
# this is used for copies and install
S = "${WORKDIR}/git/pcmx"
inherit native cmake
BBCLASSEXTEND = "native nativesdk"
# B="${S}"
do_install() {
install -d ${D}${bindir}
# # this does not work
# #install -m 0755 ${WORKDIR}/Tutorial ${D}${bindir}
# # this works
install -m 0755 bin/*generator ${D}${bindir}
install -m 0755 bin/lfotool.bin ${D}${bindir}
# will this help?
# NO PACKAGE_CLASSES = "package_tar"
A host build of pcmx for ubuntu x86_64 which install as part of the populate sdk task.
The host build must install into /bin some binaries which are created when building pcmx.
A target build of pcmx which uses some of the tools built during the host build. Its binaries should be installed on the
target /bin dir. The host tools built earlier should not be in /bin.
o how to specify that pcmx target uses pcmx host/native? It might be sufficient that
the host builds first and populates the sysroot with binaries.
#has this addtion
TOOLCHAIN_HOST_TASK += "nativesdk-pcmx"
inherit native cmake
BBCLASSEXTEND = "native nativesdk"
# this is so that the target builds pcmx
IMAGE_INSTALL_append += "pcmx"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.