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 STATIC=1
fi fi
if [ -z "$ROOT" ]; then if [ -n "$ROOT" ]; then
LIBXDP_STATIC=$STATIC make cd $ROOT
else fi
cd $ROOT && LIBXDP_STATIC=$STATIC make
fi LIBXDP_STATIC=$STATIC make

View File

@@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
if [ -z "$ROOT" ]; then if [ -n "$ROOT" ]; then
make clean cd $ROOT
else fi
cd $ROOT && make clean
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 #!/bin/bash
if [ -z "$ROOT" ]; then if [ -n "$ROOT" ]; then
make install cd $ROOT
else fi
cd $ROOT && make install
fi make install

View File

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

View File

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

View File

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

View File

@@ -4,4 +4,4 @@ if [ -n "$ROOT" ]; then
cd $ROOT cd $ROOT
fi 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