Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
15 years ago

uclinux driver kernel makefile customize

Hi,

I am doing carcass tutorial from nios2wiki for DE2 altera board

I want composite kernel with DE2 leds,switches,buttons,display...PIO drivers

I have just customize menuconfig kernel installation the Kconfig with DE2 pio options on

.../linux-2.6/drivers/misc/phillip/ directory

I have run make menuconfig and the dot-config file in /uClinux-dist/linux-2.6.x/ is correct

Now I would like customize kernel makefile :

¿ what directory of makefile tree must i customize?

i have put the specifice Makefile on same Kconfig directory linux-2.6/drivers/misc/phillip/

and when I run make for kernel building, in the screen prompt I dont see message like

CC drivers/misc/phillip/de2_leds.o

i must changed some other Makefile for run .../phillip/Makefile child? or i must put the phillip_Makeflie on other directory?

Thanks

1 Reply

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi,

    solution

    add to Makefile file in uClinux-dist/linux2.6/drivers/misc/Makefile the next directive

    obj-y +=phillip/ ->relative path to driver Makefile

    Candido