[dpdk-dev] [PATCH] build: clean up building kernel modules using meson
Hemant Agrawal
hemant.agrawal at nxp.com
Thu Feb 22 19:04:29 CET 2018
On 2/22/2018 11:08 PM, Bruce Richardson wrote:
> The meson.build files for building the kernel modules directory could
> be improved now that it is extracted from the EAL. For example, no
> global processing is necessary inside the kernel folder, just need to
> subdir to the appropriate bsd or linux folder to do the actual work.
>
> Signed-off-by: Bruce Richardson <bruce.richardson at intel.com>
> ---
> NOTE: this patch depends upon patch #35336, to move kernel modules to
> a top-level "kernel" folder.
Tested-by: Hemant Agrawal <hemant.agrawal at nxp.com>
Build was fine, but observed one error print.
b10814 at freebsd:~/dpdk/build % ninja
[333/654] Generating contigmem with a custom command.
@ -> /usr/src/sys
machine -> /usr/src/sys/amd64/include
x86 -> /usr/src/sys/x86/include
awk -f @/tools/makeobjops.awk @/kern/device_if.m -h
awk -f @/tools/makeobjops.awk @/kern/bus_if.m -h
awk -f @/tools/makeobjops.awk @/dev/pci/pci_if.m -h
cc -O2 -pipe -include rte_config.h -fno-strict-aliasing -Werror
-D_KERNEL -DKLD_MODULE -nostdinc -I/usr/home/b10814/dpdk/build
-I/usr/home/b10814/dpdk/config -I. -I@ -I@/contrib/altq -fno-common
-fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -mno-aes -mno-avx
-mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -msoft-float
-fno-asynchronous-unwind-tables -ffreestanding -fstack-protector
-std=iso9899:1999 -Qunused-arguments -fstack-protector -Wall
-Wredundant-decls -Wnested-externs -Wstrict-prototypes
-Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef
-Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs
-fdiagnostics-show-option -Wno-error-tautological-compare
-Wno-error-empty-body -Wno-error-parentheses-equality
-Wno-error-unused-function -c
/usr/home/b10814/dpdk/kernel/freebsd/contigmem/contigmem.c -o contigmem.o
ld -d -warn-common -r -d -o contigmem.ko contigmem.o
:> export_syms
awk -f /sys/conf/kmod_syms.awk contigmem.ko export_syms | xargs -J%
objcopy % contigmem.ko
objcopy --strip-debug contigmem.ko
[334/654] Generating nic_uio with a custom command.
awk -f @/tools/makeobjops.awk @/kern/bus_if.m -h
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
mv: rename bus_if.h.tmp to bus_if.h: No such file or directory
makeobjops.awk: mv -f bus_if.h.tmp bus_if.h failed (1)
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
cc -O2 -pipe -include rte_config.h -fno-strict-aliasing -Werror
-D_KERNEL -DKLD_MODULE -nostdinc -I/usr/home/b10814/dpdk/build
-I/usr/home/b10814/dpdk/config -I. -I@ -I@/contrib/altq -fno-common
-fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -mno-aes -mno-avx
-mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -msoft-float
-fno-asynchronous-unwind-tables -ffreestanding -fstack-protector
-std=iso9899:1999 -Qunused-arguments -fstack-protector -Wall
-Wredundant-decls -Wnested-externs -Wstrict-prototypes
-Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef
-Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs
-fdiagnostics-show-option -Wno-error-tautological-compare
-Wno-error-empty-body -Wno-error-parentheses-equality
-Wno-error-unused-function -c
/usr/home/b10814/dpdk/kernel/freebsd/nic_uio/nic_uio.c -o nic_uio.o
ld -d -warn-common -r -d -o nic_uio.ko nic_uio.o
:> export_syms
awk -f /sys/conf/kmod_syms.awk nic_uio.ko export_syms | xargs -J%
objcopy % nic_uio.ko
objcopy --strip-debug nic_uio.ko
[654/654] Linking target app/test-eventdev/dpdk-test-eventdev.
<snip>...
More information about the dev
mailing list