Improve scripts.

This commit is contained in:
Christian Deacon
2025-02-26 17:01:51 -05:00
parent 37c361e03c
commit ad40c4183f
8 changed files with 31 additions and 38 deletions

View File

@@ -6,8 +6,8 @@ if [ -z "$STATIC" ]; then
STATIC=1
fi
if [ -z "$ROOT" ]; then
LIBXDP_STATIC=$STATIC make
else
cd $ROOT && LIBXDP_STATIC=$STATIC make
fi
if [ -n "$ROOT" ]; then
cd $ROOT
fi
LIBXDP_STATIC=$STATIC make

View File

@@ -1,7 +1,7 @@
#!/bin/bash
if [ -z "$ROOT" ]; then
make clean
else
cd $ROOT && make clean
fi
if [ -n "$ROOT" ]; then
cd $ROOT
fi
make clean

View File

@@ -1,7 +0,0 @@
#!/bin/bash
if [ -n "$ROOT" ]; then
cd $ROOT
fi
llvm-objdump -S --no-show-raw-insn build/xdp/xdp_prog.o > dump.asm

View File

@@ -1,7 +1,7 @@
#!/bin/bash
if [ -z "$ROOT" ]; then
make install
else
cd $ROOT && make install
fi
if [ -n "$ROOT" ]; then
cd $ROOT
fi
make install

View File

@@ -1,7 +1,7 @@
#!/bin/bash
if [ -z "$ROOT" ]; then
make libxdp
else
cd $ROOT && make libxdp
fi
if [ -n "$ROOT" ]; then
cd $ROOT
fi
make libxdp

View File

@@ -1,7 +1,7 @@
#!/bin/bash
if [ -z "$ROOT" ]; then
make libxdp_clean
else
cd $ROOT && make libxdp_clean
fi
if [ -n "$ROOT" ]; then
cd $ROOT
fi
make libxdp_clean

View File

@@ -1,7 +1,7 @@
#!/bin/bash
if [ -z "$ROOT" ]; then
make libxdp_install
else
cd $ROOT && make libxdp_install
fi
if [ -n "$ROOT" ]; then
cd $ROOT
fi
make libxdp_install

View File

@@ -4,4 +4,4 @@ if [ -n "$ROOT" ]; then
cd $ROOT
fi
llvm-objdump -S --no-show-raw-insn build/xdp/xdp_prog.o > dump.asm
llvm-objdump -S --no-show-raw-insn build/xdp/xdp_prog.o > objdump.asm