Add build/install scripts and improve README.
This commit is contained in:
13
scripts/build.sh
Executable file
13
scripts/build.sh
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
STATIC="$1"
|
||||
|
||||
if [ -z "$STATIC" ]; then
|
||||
STATIC=0
|
||||
fi
|
||||
|
||||
if [ -z "$ROOT" ]; then
|
||||
LIBBPF_LIBXDP_STATIC=$STATIC make
|
||||
else
|
||||
cd $ROOT && LIBBPF_LIBXDP_STATIC=$STATIC make
|
||||
fi
|
||||
7
scripts/clean.sh
Executable file
7
scripts/clean.sh
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -z "$ROOT" ]; then
|
||||
make clean
|
||||
else
|
||||
cd $ROOT && make clean
|
||||
fi
|
||||
7
scripts/install.sh
Executable file
7
scripts/install.sh
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -z "$ROOT" ]; then
|
||||
make install
|
||||
else
|
||||
cd $ROOT && make install
|
||||
fi
|
||||
7
scripts/libxdp_build.sh
Executable file
7
scripts/libxdp_build.sh
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -z "$ROOT" ]; then
|
||||
make libxdp
|
||||
else
|
||||
cd $ROOT && make libxdp
|
||||
fi
|
||||
7
scripts/libxdp_clean.sh
Executable file
7
scripts/libxdp_clean.sh
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -z "$ROOT" ]; then
|
||||
make libxdp_clean
|
||||
else
|
||||
cd $ROOT && make libxdp_clean
|
||||
fi
|
||||
7
scripts/libxdp_install.sh
Executable file
7
scripts/libxdp_install.sh
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -z "$ROOT" ]; then
|
||||
make libxdp_install
|
||||
else
|
||||
cd $ROOT && make libxdp_install
|
||||
fi
|
||||
Reference in New Issue
Block a user