add generic build
This commit is contained in:
parent
224e25eab5
commit
2c8565d44b
6
Makefile
6
Makefile
@ -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
21
README
Normal 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
|
||||
```
|
||||
33
debian/patches/003-build-for-generic.patch
vendored
Normal file
33
debian/patches/003-build-for-generic.patch
vendored
Normal 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'
|
||||
1
debian/patches/series
vendored
1
debian/patches/series
vendored
@ -1,2 +1,3 @@
|
||||
001-fix-autoclean-on-first-build.patch
|
||||
002-fix-spdk_setup-rootdir-path.patch
|
||||
003-build-for-generic.patch
|
||||
|
||||
Loading…
Reference in New Issue
Block a user