My last kernel development was in version 2.6 ~ Now I'm trying to compile a module, and I get the following error when compiling outside the kernel tree.
/bin/sh: 1: /home/blabla/workspace/kernel35/linux-3.5/scripts/recordmcount: not found
The object file is created correctly, but the problem is inside the kernel Makefile itself, is something changed and I have not been updated?
I use Vanilla kernel sources from kernel.org, and I already did
make oldconfig && make prepare
I posted the makefile that I use, this is the standard makefile for kernel modules
ifeq ($(DEBUG),y)
DEBFLAGS = -O -g -DBLABLA_DEBUG
else
DEBFLAGS = -O2
endif
ccflags-y += $(DEBFLAGS)
ccflags-y += -I..
ifneq ($(KERNELRELEASE),)
obj-m := blabla.o
else
KERNELDIR ?= /home/blabla/workspace/kernel35/linux-3.5
PWD := $(shell pwd)
default:
$(MAKE) -C $(KERNELDIR) M=$(PWD) modules
endif
clean:
rm -rf *.o *~ core .depend .*.cmd *.ko *.mod.c .tmp_versions
depend .depend dep:
$(CC) $(CFLAGS) -M *.c > .depend
ifeq (.depend,$(wildcard .depend))
include .depend
endif
source
share