Update workflow and Makefile.

This commit is contained in:
Christian Deacon
2025-02-23 17:31:36 -05:00
parent 816960bf39
commit f5d9d3a8d5
2 changed files with 5 additions and 3 deletions

View File

@@ -25,8 +25,10 @@ jobs:
run: sudo apt install -y llvm run: sudo apt install -y llvm
- name: Install LibXDP Depedencies - name: Install LibXDP Depedencies
run: sudo apt install -y libpcap-dev m4 gcc-multilib linux-tools-$(uname -r) run: sudo apt install -y libpcap-dev m4 gcc-multilib linux-tools-$(uname -r)
- name: Make and install LibXDP - name: Build LibXDP.
run: make libxdp run: make libxdp
- name: Install LibXDP.
run: sudo make libxdp_install
- name: Make project - name: Make project
run: LIBBPF_LIBXDP_STATIC=1 make run: LIBBPF_LIBXDP_STATIC=1 make
- name: Install project - name: Install project

View File

@@ -113,8 +113,8 @@ libxdp:
$(MAKE) -C $(XDP_TOOLS_DIR) libxdp $(MAKE) -C $(XDP_TOOLS_DIR) libxdp
libxdp_install: libxdp_install:
sudo $(MAKE) -C $(LIBBPF_SRC) install $(MAKE) -C $(LIBBPF_SRC) install
sudo $(MAKE) -C $(LIBXDP_DIR) install $(MAKE) -C $(LIBXDP_DIR) install
libxdp_clean: libxdp_clean:
$(MAKE) -C $(XDP_TOOLS_DIR) clean $(MAKE) -C $(XDP_TOOLS_DIR) clean