Results 1 to 2 of 2
I have a makefile for kernel device drivers like # # Makefile for the kernel mmc device drivers. # # # Core # obj-$(CONFIG_MMC) += mmc_core.o # # Media drivers ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 01-22-2007 #1
- Join Date
- Jan 2007
compilation of makefile
I have a makefile for kernel device drivers
# Makefile for the kernel mmc device drivers.
obj-$(CONFIG_MMC) += mmc_core.o
# Media drivers
obj-$(CONFIG_MMC_BLOCK) += mmc_block.o
# Host drivers
obj-$(CONFIG_MMC_ARMMMCI) += mmci.o
obj-$(CONFIG_MMC_PXA) += pxamci.o
obj-$(CONFIG_MMC_IMX) += imxmmc.o
obj-$(CONFIG_MMC_SDHCI) += sdhci.o
obj-$(CONFIG_MMC_WBSD) += wbsd.o
obj-$(CONFIG_MMC_AU1X) += au1xmmc.o
mmc_core-y := mmc.o mmc_queue.o mmc_sysfs.o
EXTRA_CFLAGS += -DDEBUG
When i type
it gives error like "no rule to make target "
How to get object file from this makefile
- 03-06-2007 #2
- Join Date
- Aug 2006
allocating driver statically or as a loadable module is what u have to understand.
while writing makefile observe
obj-m means include driver at run time ie as loadable module that is what ur trying
obj-y means when ur making driver compile along with kernel
i think u got those macros after u did menuconfig u have written some macros i see (try to google as loadable driver modules)