Skip to content

Instantly share code, notes, and snippets.

@netskink

netskink/Goal Secret

Last active September 7, 2016 21:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save netskink/d51f1caf02157b580e2af10a3ace5b09 to your computer and use it in GitHub Desktop.
Save netskink/d51f1caf02157b580e2af10a3ace5b09 to your computer and use it in GitHub Desktop.
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"
LICENSE = "CLOSED"
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 = "${AUTOREV}"
SRCREV_FORMAT ?= "d3_d3v16_pcmx"
SRCREV_d3 ?= "${AUTOREV}"
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"
BBCLASSEXTEND = "native nativesdk"
PARALLEL_MAKE = ""
# 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.
questions
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