Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
meta-elphel393
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
meta-elphel393
Commits
0bb74fc2
Commit
0bb74fc2
authored
Dec 15, 2017
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
php 5.6.x is preferred for now
parent
5c9f5703
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
9 deletions
+16
-9
elphel393.conf
conf/machine/elphel393.conf
+2
-1
php_5.6.%.bbappend
recipes-devtools/php/php_5.6.%.bbappend
+14
-8
No files found.
conf/machine/elphel393.conf
View file @
0bb74fc2
#@TYPE: Machine
#@NAME: elphel393
#@DESCRIPTION: Machine support for elphel393.
# http://www.elphel.com/
# http://www.elphel.com/
require
include
/
tune
-
zynq
.
inc
require
include
/
machine
-
xilinx
-
default
.
inc
...
...
@@ -9,6 +9,7 @@ require include/machine-xilinx-default.inc
# Corresponding from linux-xlnx and ezynq-u-boot
PREFERRED_VERSION_ezynq
-
u
-
boot
=
"v2016.01%"
PREFERRED_VERSION_linux
-
xlnx
=
"4.%"
PREFERRED_VERSION_php
=
"5.%"
# Machine definition known by ezynq and xilinx u-boot
UBOOT_MACHINE
=
"elphel393_config"
...
...
recipes-devtools/php/php_5.6.%.bbappend
View file @
0bb74fc2
...
...
@@ -9,7 +9,9 @@ EXTRA_OECONF += "--enable-elphel \
--with-config-file-path=${sysconfdir}/php \
"
DEPENDS += " curl"
DEPENDS += " curl \
linux-xlnx \
"
VPATH = "${TOPDIR}/../../rootfs-elphel/elphel-apps-php-extension"
VFILE = "VERSION"
...
...
@@ -20,9 +22,9 @@ do_unpack_append(){
S = d.getVar('S', True)
TOPDIR = d.getVar('TOPDIR', True)
WORKDIR = d.getVar('WORKDIR', True)
if os.path.isdir(VPATH):
print("VPATH exists - creating links...")
print("VPATH exists - creating links...")
devdir_abspath = os.path.abspath(VPATH+"/src")
for path, folders, files in os.walk(VPATH+"/src"):
folders[:]=[fd for fd in folders if fd != ".git"]
...
...
@@ -35,15 +37,19 @@ do_unpack_append(){
file_relpath = file_abspath.replace(devdir_abspath+"/", '')
os.system("cd "+S+";ln -sf "+file_abspath+" "+file_relpath)
#make a link back:
if os.path.isdir(VPATH+"/php"):
os.system("rm -rf "+VPATH+"/php")
os.system("ln -sf "+S+" "+VPATH+"/php")
if os.path.isdir(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"):
os.system("rm -rf "+VPATH+"/bitbake-logs")
os.system("ln -sf "+WORKDIR+"/temp "+VPATH+"/bitbake-logs")
...
...
@@ -71,7 +77,7 @@ FILES_${PN} += " /etc/*"
do_install_append(){
install -d ${D}/etc/elphel393/packages -d ${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
tar -czvf ${WORKDIR}/image.tar.gz -C ${WORKDIR}/image .
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment