openndr / ndr-build-env

NDR Build Environment Component
https://openndr.org
Other
0 stars 2 forks source link

need to support extobj build for kernel modules #23

Closed Revimal closed 6 years ago

Revimal commented 6 years ago

HDRS += udma_common.h

SRCS += udma_common.c

include $(NBE_DIR)/ndr.obj.mk

DIRS += nixgbe include $(NBE_DIR)/ndr.subdir.mk


* Kmod Makefile

KMOD += nixgbe

EXTOBJS += udma_common

SRCS += nixgbe_kcompat.c SRCS += nixgbe_pdev.c SRCS += nixgbe_main.c

include $(NBE_DIR)/ndr.kernmod.mk


* Build Result

== Build drivers/userdma make[2]: Entering directory '/home/revimal/ndrte/native/drivers/userdma' In file included from /home/revimal/ndrte/drivers/userdma/udma_common.h:4:0, from /home/revimal/ndrte/drivers/userdma/udma_common.c:1: /home/revimal/ndrte/native/_mkinc/drv_common.h:4:26: fatal error: linux/module.h: No such file or directory compilation terminated. /home/revimal/ndrte/ndr-build-env/ndr.obj.mk:21: recipe for target 'udma_common.c' failed