mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-30 15:23:26 +03:00
dpdk: make primary output usable as RTE_SDK
This commit is contained in:
parent
f0006ff228
commit
a0912e7093
@ -33,8 +33,25 @@ stdenv.mkDerivation rec {
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir $out
|
||||
cp -pr x86_64-native-linuxapp-gcc/{lib,include} $out/
|
||||
install -m 0755 -d $out/lib
|
||||
install -m 0644 ${RTE_TARGET}/lib/*.a $out/lib
|
||||
|
||||
install -m 0755 -d $out/include
|
||||
install -m 0644 ${RTE_TARGET}/include/*.h $out/include
|
||||
|
||||
install -m 0755 -d $out/include/generic
|
||||
install -m 0644 ${RTE_TARGET}/include/generic/*.h $out/include/generic
|
||||
|
||||
install -m 0755 -d $out/include/exec-env
|
||||
install -m 0644 ${RTE_TARGET}/include/exec-env/*.h $out/include/exec-env
|
||||
|
||||
install -m 0755 -d $out/${RTE_TARGET}
|
||||
install -m 0644 ${RTE_TARGET}/.config $out/${RTE_TARGET}
|
||||
|
||||
install -m 0755 -d $out/${RTE_TARGET}/include
|
||||
install -m 0644 ${RTE_TARGET}/include/rte_config.h $out/${RTE_TARGET}/include
|
||||
|
||||
cp -pr mk scripts $out/
|
||||
|
||||
mkdir -p $kmod/lib/modules/${kernel.modDirVersion}/kernel/drivers/net
|
||||
cp ${RTE_TARGET}/kmod/*.ko $kmod/lib/modules/${kernel.modDirVersion}/kernel/drivers/net
|
||||
|
Loading…
Reference in New Issue
Block a user