I have made some trivial modifications to a Linux USB Wi-Fi card driver to insert some logging (printk
statements). I am loosely following a guide on how to recompile/load the module, which states that I need to execute make
in order to build the .ko
file. There is an existing Makefile
in the working directory (/usr/src/linux/drivers/net/wireless/rtl818x/rtl8187/
), which reads:
rtl8187-objs := dev.o rtl8225.o leds.o rfkill.o
obj-$(CONFIG_RTL8187) += rtl8187.o
ccflags-y += -Idrivers/net/wireless/rtl818x
When I execute make
inside this directory, I get:
make: *** No targets. Stop.
According to this, this means "that some makefile was found, but it didn't contain any default goal and none was given on the command line. GNU make has nothing to do in these situations."
So my question is, what does this mean in the context of what I am trying to do, and how do I go about generating the .ko
file which I am purported to need for the next step?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…