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
95d52f44
Commit
95d52f44
authored
Dec 19, 2013
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
special developer's folder with sources safe from cleaning
parent
a443bf8a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
6 deletions
+21
-6
linux-xlnx_3.10.bbappend
recipes-kernel/linux/linux-xlnx_3.10.bbappend
+21
-6
No files found.
recipes-kernel/linux/linux-xlnx_3.10.bbappend
View file @
95d52f44
...
...
@@ -11,17 +11,32 @@ SRCREV = "efc27505715e64526653f35274717c0fc56491e3"
linux-elphel_label= "git://git.code.sf.net/p/elphel/linux-elphel"
linux-elphel_branch= "master"
linux-elphel_gitdir= "${WORKDIR}/linux-elphel"
# To use the latest leave
""
# To use the latest leave
: "" - (=empty)
linux-elphel_srcrev= ""
#linux-elphel_srcrev= "0ca36687a400fd9a5c4510295ae5be88aac77fa4"
DEV_DIR ?= "${TOPDIR}/../linux-elphel"
do_fetch_append() {
print("Cloninig ${linux-elphel_label}\n")
os.system("git clone -b ${linux-elphel_branch} ${linux-elphel_label} ${linux-elphel_gitdir}")
os.system("cd ${linux-elphel_gitdir};git checkout ${linux-elphel_srcrev}")
if os.path.isdir("${DEV_DIR}"):
print("Found DEV_DIR, skipping cloning")
else:
print("Cloninig ${linux-elphel_label}\n")
os.system("git clone -b ${linux-elphel_branch} ${linux-elphel_label} ${linux-elphel_gitdir}")
os.system("cd ${linux-elphel_gitdir};git checkout ${linux-elphel_srcrev}")
}
do_unpack_append() {
print("Copying ${linux-elphel_gitdir} over ${S}\n")
os.system("cp -rf ${linux-elphel_gitdir}/* ${S}")
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}"):
folders[:]=[fd for fd in folders if fd != ".git"]
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};ln -s "+file_abspath+" "+file_relpath)
else:
print("Copying ${linux-elphel_gitdir} over ${S}\n")
os.system("cp -rf ${linux-elphel_gitdir}/* ${S}")
}
\ 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