ply: Allow building for git-fetched kernels
This commit is contained in:
parent
03b08fca66
commit
56beae4db6
@ -16,9 +16,17 @@ in stdenv.mkDerivation {
|
|||||||
};
|
};
|
||||||
|
|
||||||
preAutoreconf = ''
|
preAutoreconf = ''
|
||||||
# ply wants to install header fails to its build directory
|
# If kernel sources are a folder (i.e. fetched from git), we just copy them in
|
||||||
# use 7z to handle multiple archive formats transparently
|
# Since they are owned by uid 0 and read-only, we need to fix permissions
|
||||||
7z x ${kernel.src} -so | 7z x -aoa -si -ttar
|
if [ -d ${kernel.src} ]; then
|
||||||
|
cp -r ${kernel.src} linux-${kernel.version}
|
||||||
|
chown -R $(whoami): linux-${kernel.version}
|
||||||
|
chmod -R a+w linux-${kernel.version}
|
||||||
|
else
|
||||||
|
# ply wants to install header files to its build directory
|
||||||
|
# use 7z to handle multiple archive formats transparently
|
||||||
|
7z x ${kernel.src} -so | 7z x -aoa -si -ttar
|
||||||
|
fi
|
||||||
|
|
||||||
configureFlagsArray+=(--with-kerneldir=$(echo $(pwd)/linux-*))
|
configureFlagsArray+=(--with-kerneldir=$(echo $(pwd)/linux-*))
|
||||||
./autogen.sh --prefix=$out
|
./autogen.sh --prefix=$out
|
||||||
|
Loading…
x
Reference in New Issue
Block a user