diff --git a/Makefile b/Makefile index b56efa9..dd9aec7 100644 --- a/Makefile +++ b/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 diff --git a/README b/README new file mode 100644 index 0000000..842ab8c --- /dev/null +++ b/README @@ -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 +``` \ No newline at end of file diff --git a/debian/patches/003-build-for-generic.patch b/debian/patches/003-build-for-generic.patch new file mode 100644 index 0000000..7bc679a --- /dev/null +++ b/debian/patches/003-build-for-generic.patch @@ -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' diff --git a/debian/patches/series b/debian/patches/series index e58e0b9..970cdd0 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,2 +1,3 @@ 001-fix-autoclean-on-first-build.patch 002-fix-spdk_setup-rootdir-path.patch +003-build-for-generic.patch