Re: How to create a Rules.make in the kernel-sources?
On Sun, Aug 07, 2005 at 03:46:43PM +0200, Wolfgang Pfeiffer wrote:
> I'm trying to compile a driver module for some 2.6.12 kernel sources:
> The compile of this module always quickly stops. As it seems because
> of a missing Rules.make file in the top level kernel source directory,
> or because if a missing rule to build Rules.make:
> [ ... ]
> So when building the kernel/Debian kernel-package: Is there a special
> flag for either make or make-kpkg that also creates this, as it seems
> from above, missing Rules.make
> Or - alternatively - does the driver source expect to find some rule
> somewhere to build this Rules.make file; a rule that in this case it
> does not see .. ?
Here's the driver Makefile from the Ralink sources:
# Makefile for the Linux Wireless network device drivers.
RALINK_WFLAGS := -Wall -Wstrict-prototypes -Wno-trigraphs
RALINK_CFLAGS := -g -D__KERNEL__ -I$(LINUX_SRC)/include -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe $(RALINK_WFLAGS) -DBIG_ENDIAN -DLinux
EXTRA_CFLAGS += $(RALINK_CFLAGS)
O_TARGET := rt2560_sta.o
obj-$(CONFIG_RT2560_STA) += rtmp_main.o \
So as the last line suggests the build's looking for $(TOPDIR)/Rules.make