add generic build

This commit is contained in:
Jiangcuo 2025-02-08 12:35:39 +08:00
parent 224e25eab5
commit 2c8565d44b
4 changed files with 55 additions and 6 deletions

View File

@ -40,12 +40,6 @@ $(BUILDDIR): submodule
deb: $(DEB)
$(DEB): $(BUILDDIR)
cd $(BUILDDIR); dpkg-buildpackage -b -us -uc
lintian $(DEB)
.PHONY: lintian
deb: $(DEB)
lintian $(DEB)
.PHONY: distclean
distclean: clean

21
README Normal file
View File

@ -0,0 +1,21 @@
# SPDK for pxvirt
## Build
```bash
apt update
apt instal devscripts build-essential -y
```
```bash
git submoule update --init --recursive
mk-build-deps --install --remove
make deb
```
## Build for self machine
```bash
sed -i "/003-build-for-generic.patch/d" debian/patches/series
make deb
```

View File

@ -0,0 +1,33 @@
diff --git a/dpdkbuild/Makefile b/dpdkbuild/Makefile
index 64da6cc32..56897cbe4 100644
--- a/dpdkbuild/Makefile
+++ b/dpdkbuild/Makefile
@@ -11,6 +11,8 @@ include $(SPDK_ROOT_DIR)/mk/spdk.common.mk
DPDK_OPTS = -Denable_docs=false
DPDK_OPTS += -Dtests=false
+DPDK_OPTS += -Dplatform=generic
+
ifeq ($(shell uname -m),aarch64)
ifeq ($(shell uname -p),unknown)
diff --git a/dpdk/config/x86/meson.build b/dpdk/config/x86/meson.build
index 8087b9ae91..a236a316dd 100644
--- a/dpdk/config/x86/meson.build
+++ b/dpdk/config/x86/meson.build
@@ -50,15 +50,6 @@ optional_flags = [
'AES',
'AVX',
'AVX2',
- 'AVX512BW',
- 'AVX512CD',
- 'AVX512DQ',
- 'AVX512F',
- 'AVX512VL',
- 'PCLMUL',
- 'RDRND',
- 'RDSEED',
- 'VPCLMULQDQ',
]
foreach f:optional_flags
if cc.get_define('__@0@__'.format(f), args: machine_args) == '1'

View File

@ -1,2 +1,3 @@
001-fix-autoclean-on-first-build.patch
002-fix-spdk_setup-rootdir-path.patch
003-build-for-generic.patch