I built bootloaders and the linux kernel using flex-builder in LSDK 21.08 on LS1046A target board. And I need to implement a separate PCI device driver on this board, so I am setting up a driver build environment.
My simple makefile is configured as follows:
obj-m := testdrv.o
KDIR := /home/jinwon/nxp-dev/flexbuild_lsdk2108_github/components/linux/linux
PWD := $(shell pwd)
default:
$(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules
When I perform the build, I encounter the following error:
***
*** Configuration file ".config" not found!
***
*** Please run some configurator (e.g., "make oldconfig" or
*** "make menuconfig" or "make xconfig").
Fixing the above error causes problems with builds using the flex-builder.
I would appreciate it if you could let me know the general method for building a custom device driver in LSDK 21.08 or any pages for reference.
Or should I create a separate development environment by obtaining a separate kernel, apart from the LSDK build environment? Thanks in advance.