dpdk: drop examples output; simplify install phase
This commit is contained in:
parent
ec85e42c0b
commit
f6075fc211
@ -20,45 +20,18 @@ stdenv.mkDerivation rec {
|
|||||||
NIX_CFLAGS_COMPILE = [ "-march=core2" ];
|
NIX_CFLAGS_COMPILE = [ "-march=core2" ];
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
outputs = [ "out" "kmod" "examples" ];
|
outputs = [ "out" "kmod" ];
|
||||||
|
|
||||||
hardeningDisable = [ "pic" ];
|
hardeningDisable = [ "pic" ];
|
||||||
|
|
||||||
configurePhase = ''
|
configurePhase = ''
|
||||||
make T=x86_64-native-linuxapp-gcc config
|
make T=${RTE_TARGET} config
|
||||||
'';
|
|
||||||
|
|
||||||
buildPhase = ''
|
|
||||||
make T=x86_64-native-linuxapp-gcc install
|
|
||||||
make T=x86_64-native-linuxapp-gcc examples
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
install -m 0755 -d $out/lib
|
make install-runtime install-sdk DESTDIR=$out prefix= includedir=/include datadir=/
|
||||||
install -m 0644 ${RTE_TARGET}/lib/*.a $out/lib
|
make install-sdk DESTDIR=$out prefix= includedir=/include datadir=/
|
||||||
|
make install-kmod DESTDIR=$kmod
|
||||||
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 $out/
|
|
||||||
|
|
||||||
mkdir -p $kmod/lib/modules/${kernel.modDirVersion}/kernel/drivers/net
|
|
||||||
cp ${RTE_TARGET}/kmod/*.ko $kmod/lib/modules/${kernel.modDirVersion}/kernel/drivers/net
|
|
||||||
|
|
||||||
mkdir -p $examples/bin
|
|
||||||
find examples ${RTE_TARGET}/app -type f -executable -exec cp {} $examples/bin \;
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user