Commit fa20ebf2 authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

1. updated sysroots 2. fixed streamer build 3. fixed python extensions build...

1. updated sysroots 2. fixed streamer build 3. fixed python extensions build 4. fixed linux-xlnx build
parent 32a3a7cb
# developers version
DEPENDS += "linux-xlnx"
inherit elphel-misc elphel-scp
do_unpack(){
......@@ -11,7 +13,10 @@ do_unpack(){
if [ -d ${VPATH}/sysroots ]; then
rm -rf ${VPATH}/sysroots
fi
ln -sf ${TOPDIR}/tmp/sysroots ${VPATH}/sysroots
# old:
#ln -sf ${TOPDIR}/tmp/sysroots ${VPATH}/sysroots
# new:
ln -sf ${WORKDIR}/recipe-sysroot ${VPATH}/sysroots
if [ -d ${VPATH}/bitbake-logs ]; then
rm -rf ${VPATH}/bitbake-logs
......
......@@ -14,6 +14,10 @@ do_configure[noexec] = "1"
#do_compile[noexec] = "1"
DEPENDS += "alsa-lib"
# needed for sysroot?
#DEPENDS += "apache2"
RDEPENDS_apps-astreamer += "alsa-lib"
FILES_${PN} += " ${base_prefix}/usr/bin/*"
......@@ -26,7 +26,10 @@ INHIBIT_PACKAGE_STRIP = "1"
S = "${WORKDIR}/git"
do_compile() {
${CC} -Wall -Wextra -O -ansi -pedantic -shared -fPIC libelphel.c -o libelphel.so
# old
#${CC} -Wall -Wextra -O -ansi -pedantic -shared -fPIC libelphel.c -o libelphel.so
# Elphel, Rocko: was missing hash style
${CC} -Wl,--hash-style=gnu -Wall -Wextra -O -ansi -pedantic -shared -fPIC libelphel.c -o libelphel.so
}
do_install() {
......
......@@ -76,7 +76,7 @@ python do_link() {
#os.system("cd "+DEV_DIR+"; ln -sf "+S+" linux")
if not os.path.isdir(DEV_DIR+"/sysroots"):
os.system("cd "+DEV_DIR+"; ln -sf "+TOPDIR+"/tmp/sysroots sysroots")
os.system("cd "+DEV_DIR+"; ln -sf "+WORKDIR+"/recipe-sysroot sysroots")
if not os.path.isdir(DEV_DIR+"/linux"):
os.system("cd "+DEV_DIR+"; ln -sf "+WORKDIR+"/linux-"+MACHINE+"-standard-build linux")
if not os.path.isdir(DEV_DIR+"/image"):
......@@ -188,7 +188,9 @@ do_install_append() {
#do_populate_sysroot[sstate-outputdirs] = "${STAGING_DIR_TARGET}-uapi/"
sysroot_stage_all_append() {
sysroot_stage_dir ${WORKDIR}/headers/include ${STAGING_DIR_TARGET}/usr/include-uapi
#sysroot_stage_dir ${WORKDIR}/headers/include ${STAGING_DIR_TARGET}/usr/include-uapi
# Elphel, Rocko, new:
sysroot_stage_dir ${WORKDIR}/headers/include ${SYSROOT_DESTDIR}/usr/include-uapi
}
## And you'd then use -I=/usr/myheaders/include to reference the sysroot
......@@ -210,5 +212,3 @@ do_target_scp () {
addtask do_target_scp after do_deploy
do_target_scp[doc] = "scp copied the kernel to REMOTE_PATH on the target. REMOTE_USER and REMOTE_IP should be defined (ssh-copy-id -i KEY.pub TARGET_USER@TARGET_IP should be issued once)"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment