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
a6cd9911
Commit
a6cd9911
authored
Sep 15, 2016
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sysroots & bitbake-logs links
parent
131432d3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
8 deletions
+19
-8
php_5.6.%.bbappend
recipes-devtools/php/php_5.6.%.bbappend
+19
-8
No files found.
recipes-devtools/php/php_5.6.%.bbappend
View file @
a6cd9911
...
@@ -4,17 +4,19 @@ EXTRA_OECONF += "--enable-elphel \
...
@@ -4,17 +4,19 @@ EXTRA_OECONF += "--enable-elphel \
"
"
DEV_DIR
= "${TOPDIR}/../../rootfs-elphel/elphel-apps-php-extension"
VPATH
= "${TOPDIR}/../../rootfs-elphel/elphel-apps-php-extension"
do_unpack_append(){
do_unpack_append(){
print("Link everything to the main tree")
print("Link everything to the main tree")
DEV_DIR = d.getVar('DEV_DIR
', True)
VPATH = d.getVar('VPATH
', True)
S = d.getVar('S', True)
S = d.getVar('S', True)
TOPDIR = d.getVar('TOPDIR', True)
WORKDIR = d.getVar('WORKDIR', True)
if os.path.isdir(
DEV_DIR
):
if os.path.isdir(
VPATH
):
print("
DEV_DIR
exists - creating links...")
print("
VPATH
exists - creating links...")
devdir_abspath = os.path.abspath(
DEV_DIR
+"/src")
devdir_abspath = os.path.abspath(
VPATH
+"/src")
for path, folders, files in os.walk(
DEV_DIR
+"/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"]
for folder in folders:
for folder in folders:
folder_abspath = os.path.abspath(os.path.join(path, folder))
folder_abspath = os.path.abspath(os.path.join(path, folder))
...
@@ -26,8 +28,17 @@ do_unpack_append(){
...
@@ -26,8 +28,17 @@ do_unpack_append(){
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 not os.path.isdir(DEV_DIR+"/php"):
if os.path.isdir(VPATH+"/php"):
os.system("ln -sf "+S+" "+DEV_DIR+"/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")
if os.path.isdir(VPATH+"/bitbake-logs"):
os.system("rm -rf "+VPATH+"/bitbake-logs")
os.system("ln -sf "+WORKDIR+"/temp "+VPATH+"/bitbake-logs")
}
}
...
...
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