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
ae279f8b
Commit
ae279f8b
authored
Aug 12, 2016
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
linux-elphel-like structure
parent
bf875fee
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
7 deletions
+12
-7
php_5.6.%.bbappend
recipes-devtools/php/php_5.6.%.bbappend
+12
-7
No files found.
recipes-devtools/php/php_5.6.%.bbappend
View file @
ae279f8b
EXTRA_OECONF += "--enable-elphel"
DEV_DIR
?= "${TOPDIR}/../../rootfs-elphel/elphel-apps-php-extension/ext
"
DEV_DIR
= "${TOPDIR}/../../rootfs-elphel/elphel-apps-php-extension
"
do_unpack_append(){
print("Link e
xtension
to the main tree")
print("Link e
verything
to the main tree")
DEV_DIR = d.getVar('DEV_DIR', True)
S = d.getVar('S', True)
if os.path.isdir(DEV_DIR):
print("DEV_DIR exists - creating links...")
devdir_abspath = os.path.abspath(DEV_DIR)
for path, folders, files in os.walk(DEV_DIR):
devdir_abspath = os.path.abspath(DEV_DIR
+"/src"
)
for path, folders, files in os.walk(DEV_DIR
+"/src"
):
folders[:]=[fd for fd in folders if fd != ".git"]
for folder in folders:
folder_abspath = os.path.abspath(os.path.join(path, folder))
folder_relpath = folder_abspath.replace(devdir_abspath+"/", '')
os.system("cd "+S+"
/ext
;mkdir -p "+folder_relpath)
os.system("cd "+S+";mkdir -p "+folder_relpath)
for filename in files:
file_abspath = os.path.abspath(os.path.join(path, filename))
file_relpath = file_abspath.replace(devdir_abspath+"/", '')
os.system("cd "+S+"/ext;ln -sf "+file_abspath+" "+file_relpath)
os.system("cd "+S+";ln -sf "+file_abspath+" "+file_relpath)
#make a link back:
if not os.path.isdir(DEV_DIR+"/php"):
os.system("ln -sf "+S+" "+DEV_DIR+"/php")
}
\ No newline at end of file
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