Commit 0bb74fc2 authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

php 5.6.x is preferred for now

parent 5c9f5703
#@TYPE: Machine #@TYPE: Machine
#@NAME: elphel393 #@NAME: elphel393
#@DESCRIPTION: Machine support for elphel393. #@DESCRIPTION: Machine support for elphel393.
# http://www.elphel.com/ # http://www.elphel.com/
require include/tune-zynq.inc require include/tune-zynq.inc
require include/machine-xilinx-default.inc require include/machine-xilinx-default.inc
...@@ -9,6 +9,7 @@ require include/machine-xilinx-default.inc ...@@ -9,6 +9,7 @@ require include/machine-xilinx-default.inc
# Corresponding from linux-xlnx and ezynq-u-boot # Corresponding from linux-xlnx and ezynq-u-boot
PREFERRED_VERSION_ezynq-u-boot = "v2016.01%" PREFERRED_VERSION_ezynq-u-boot = "v2016.01%"
PREFERRED_VERSION_linux-xlnx = "4.%" PREFERRED_VERSION_linux-xlnx = "4.%"
PREFERRED_VERSION_php = "5.%"
# Machine definition known by ezynq and xilinx u-boot # Machine definition known by ezynq and xilinx u-boot
UBOOT_MACHINE = "elphel393_config" UBOOT_MACHINE = "elphel393_config"
......
...@@ -9,7 +9,9 @@ EXTRA_OECONF += "--enable-elphel \ ...@@ -9,7 +9,9 @@ EXTRA_OECONF += "--enable-elphel \
--with-config-file-path=${sysconfdir}/php \ --with-config-file-path=${sysconfdir}/php \
" "
DEPENDS += " curl" DEPENDS += " curl \
linux-xlnx \
"
VPATH = "${TOPDIR}/../../rootfs-elphel/elphel-apps-php-extension" VPATH = "${TOPDIR}/../../rootfs-elphel/elphel-apps-php-extension"
VFILE = "VERSION" VFILE = "VERSION"
...@@ -20,9 +22,9 @@ do_unpack_append(){ ...@@ -20,9 +22,9 @@ do_unpack_append(){
S = d.getVar('S', True) S = d.getVar('S', True)
TOPDIR = d.getVar('TOPDIR', True) TOPDIR = d.getVar('TOPDIR', True)
WORKDIR = d.getVar('WORKDIR', True) WORKDIR = d.getVar('WORKDIR', True)
if os.path.isdir(VPATH): if os.path.isdir(VPATH):
print("VPATH exists - creating links...") print("VPATH exists - creating links...")
devdir_abspath = os.path.abspath(VPATH+"/src") devdir_abspath = os.path.abspath(VPATH+"/src")
for path, folders, files in os.walk(VPATH+"/src"): for path, folders, files in os.walk(VPATH+"/src"):
folders[:]=[fd for fd in folders if fd != ".git"] folders[:]=[fd for fd in folders if fd != ".git"]
...@@ -35,15 +37,19 @@ do_unpack_append(){ ...@@ -35,15 +37,19 @@ do_unpack_append(){
file_relpath = file_abspath.replace(devdir_abspath+"/", '') file_relpath = file_abspath.replace(devdir_abspath+"/", '')
os.system("cd "+S+";ln -sf "+file_abspath+" "+file_relpath) os.system("cd "+S+";ln -sf "+file_abspath+" "+file_relpath)
#make a link back: #make a link back:
if os.path.isdir(VPATH+"/php"): if os.path.isdir(VPATH+"/php"):
os.system("rm -rf "+VPATH+"/php") os.system("rm -rf "+VPATH+"/php")
os.system("ln -sf "+S+" "+VPATH+"/php") os.system("ln -sf "+S+" "+VPATH+"/php")
if os.path.isdir(VPATH+"/sysroots"): if os.path.isdir(VPATH+"/sysroots"):
os.system("rm -rf "+VPATH+"/sysroots") os.system("rm -rf "+VPATH+"/sysroots")
os.system("ln -sf "+TOPDIR+"/tmp/sysroots "+VPATH+"/sysroots")
# old, JETHRO:
#os.system("ln -sf "+TOPDIR+"/tmp/sysroots "+VPATH+"/sysroots")
# new, ROCKO:
os.system("ln -sf "+WORKDIR+"/recipe-sysroot "+VPATH+"/sysroots")
if os.path.isdir(VPATH+"/bitbake-logs"): if os.path.isdir(VPATH+"/bitbake-logs"):
os.system("rm -rf "+VPATH+"/bitbake-logs") os.system("rm -rf "+VPATH+"/bitbake-logs")
os.system("ln -sf "+WORKDIR+"/temp "+VPATH+"/bitbake-logs") os.system("ln -sf "+WORKDIR+"/temp "+VPATH+"/bitbake-logs")
...@@ -71,7 +77,7 @@ FILES_${PN} += " /etc/*" ...@@ -71,7 +77,7 @@ FILES_${PN} += " /etc/*"
do_install_append(){ do_install_append(){
install -d ${D}/etc/elphel393/packages -d ${D}/etc/php install -d ${D}/etc/elphel393/packages -d ${D}/etc/php
install -m 0644 ${WORKDIR}/php.ini ${D}/etc/php install -m 0644 ${WORKDIR}/php.ini ${D}/etc/php
echo "${ELPHEL_PE}.${ELPHEL_PV}.${ELPHEL_PR}" > ${D}/etc/elphel393/packages/apps-php-extension echo "${ELPHEL_PE}.${ELPHEL_PV}.${ELPHEL_PR}" > ${D}/etc/elphel393/packages/apps-php-extension
tar -czvf ${WORKDIR}/image.tar.gz -C ${WORKDIR}/image . tar -czvf ${WORKDIR}/image.tar.gz -C ${WORKDIR}/image .
......
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