Commit 777291cc authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

updates for rocko

parent fa20ebf2
......@@ -18,6 +18,6 @@ DEPENDS += "alsa-lib"
# needed for sysroot?
#DEPENDS += "apache2"
RDEPENDS_apps-astreamer += "alsa-lib"
#RDEPENDS_apps-astreamer += "alsa-lib"
FILES_${PN} += " ${base_prefix}/usr/bin/*"
......@@ -12,5 +12,20 @@ inherit elphel-dev
do_configure[noexec] = "1"
#do_compile[noexec] = "1"
RDEPENDS_${PN} += "python-core"
FILES_${PN} += " ${base_prefix}/www/pages/* ${base_prefix}/usr/local/verilog/* ${base_prefix}/usr/local/bin/*"
FILES_${PN} += " ${base_prefix}/www/pages/* \
${base_prefix}/usr/local/verilog/* \
${base_prefix}/usr/local/bin/* \
"
do_install_append() {
rm ${D}/usr/local/bin/x393_mem.py
}
# THIS ONLY WORKS FOR /usr/bin/
#inherit update-alternatives
#ALTERNATIVE_PRIORITY = "100"
## ../ to get out from ${bindir} = /usr/bin/
#ALTERNATIVE_${PN} = "../local/bin/x393_mem.py"
......@@ -14,3 +14,9 @@ do_configure[noexec] = "1"
#do_compile[noexec] = "1"
RDEPENDS_${PN} += "python-core"
FILES_${PN} += " ${base_prefix}/usr/local/verilog/* ${base_prefix}/usr/local/bin/* ${base_prefix}/www/pages/*"
# THIS ONLY WORKS FOR /usr/bin/
#inherit update-alternatives
#ALTERNATIVE_PRIORITY = "50"
## ../ to get out from ${bindir} = /usr/bin/
#ALTERNATIVE_${PN} = "../local/bin/x393_mem.py"
......@@ -129,28 +129,40 @@ UBINIZE_ARGS = " -m 2048 -p 128KiB -s 2048"
create_symlinks_append(){
IMAGE_NAME = d.getVar('IMAGE_NAME')
DEPLOY_DIR_IMAGE = d.getVar('DEPLOY_DIR_IMAGE')
PRODUCTION_ROOTFS = d.getVar('PRODUCTION_ROOTFS')
rlocs = (d.getVar('PRODUCTION_ROOT_LOCATION', True)).split()
for rloc in rlocs:
if not os.path.isdir("${DEPLOY_DIR_IMAGE}/"+rloc):
os.system("mkdir ${DEPLOY_DIR_IMAGE}/"+rloc)
if not os.path.isdir(DEPLOY_DIR_IMAGE+"/"+rloc):
os.system("mkdir "+DEPLOY_DIR_IMAGE+"/"+rloc)
if (rloc=="mmc"):
image_ext = ".tar.gz"
image_ext = "tar.gz"
image_ext2 = ""
else:
image_ext = ".ubifs"
image_ext2 = ".ubi"
image_ext = "ubifs"
image_ext2 = "ubi"
fname = os.path.join(deploy_dir, img_name + imgsuffix + image_ext)
if os.path.exists(fname):
tmp_fname = DEPLOY_DIR_IMAGE+"/"+rloc+"/"+PRODUCTION_ROOTFS+"."+image_ext
if os.path.isfile("${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs"+image_ext):
tmp_fname = "${DEPLOY_DIR_IMAGE}/"+rloc+"/${PRODUCTION_ROOTFS}"+image_ext
if os.path.isfile(tmp_fname):
os.system("rm "+tmp_fname)
os.system("cp ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs"+image_ext+" "+tmp_fname)
os.system("cp "+fname+" "+tmp_fname)
if not image_ext2=="":
if os.path.isfile("${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs"+image_ext2):
tmp_fname = "${DEPLOY_DIR_IMAGE}/"+rloc+"/${PRODUCTION_ROOTFS}"+image_ext2
fname2 = os.path.join(deploy_dir, img_name + imgsuffix + image_ext2)
if os.path.exists(fname2):
tmp_fname = DEPLOY_DIR_IMAGE+"/"+rloc+"/"+PRODUCTION_ROOTFS+"."+image_ext2
if os.path.isfile(tmp_fname):
os.system("rm "+tmp_fname)
os.system("cp ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs"+image_ext2+" "+tmp_fname)
os.system("cp "+fname2+" "+tmp_fname)
}
......@@ -14,3 +14,4 @@ do_configure[noexec] = "1"
#do_compile[noexec] = "1"
FILES_${PN} += " ${base_prefix}/www/pages/* ${base_prefix}/usr/local/bin/*"
......@@ -10,7 +10,7 @@ CONFFILES_${PN} = "${D}/lighttpd.conf"
do_install_append() {
cp ${WORKDIR}/test.py ${D}/www/pages/test.py
cp ${WORKDIR}/phpinfo.php ${D}/www/pages/phpinfo.php
#cp ${WORKDIR}/phpinfo.php ${D}/www/pages/phpinfo.php
cp ${WORKDIR}/eth0-down-up-test.sh ${D}/www/pages/eth0-down-up-test.sh
rm -f ${D}/www/pages/index.html
}
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