From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hemant Agrawal Subject: Re: [PATCH] build: clean up building kernel modules using meson Date: Thu, 22 Feb 2018 23:34:29 +0530 Message-ID: References: <20180222173817.31872-1-bruce.richardson@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit To: Bruce Richardson , dev@dpdk.org Return-path: Received: from EUR03-DB5-obe.outbound.protection.outlook.com (mail-eopbgr40086.outbound.protection.outlook.com [40.107.4.86]) by dpdk.org (Postfix) with ESMTP id 7A5631B01D for ; Thu, 22 Feb 2018 19:04:43 +0100 (CET) In-Reply-To: <20180222173817.31872-1-bruce.richardson@intel.com> Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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 > --- > NOTE: this patch depends upon patch #35336, to move kernel modules to > a top-level "kernel" folder. Tested-by: Hemant Agrawal Build was fine, but observed one error print. b10814@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. ...