[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: make modules and make modules_install



Jonas,

That took care of it!

When I tried to compile and ftp the modules manually, I was getting a "can't
handle section of type..." error when using insmod.

Thanks a lot for you help.

Mike


----- Original Message -----
From: "Jonas Holmberg" <jonas.holmberg@xxxxxxx.com>
To: "'Amit Kucheria'" <akucheria@xxxxxxx. Francis"
<mtfrancis@xxxxxxx.net>
Cc: "dev-etrax" <dev-etrax@xxxxxxx.com>
Sent: Tuesday, April 22, 2003 2:52 AM
Subject: RE: make modules and make modules_install


> > I got no response from the developers....I just compile the module
> > manually using gcc-cris and then 'ftp' it to the box.
>
> The Makefile in devboard_82 handles modules, but the older Makefiles
> in devboard_lx and devboard_bt doesn't. The changes made in deboard_82
> will eventually find their way into deboard_lx and devboard_bt...
>
> Meanwhile, add:
>
>         @xxxxxxx.latest; then \
>                 $(MAKE) -C $(AXIS_KERNEL_DIR) INSTALL_MOD_PATH=$(prefix) \
>                 modules ; \
>         fi
>
> to the end of the "kernel" target, add this target:
>
> .PHONY: kernel_modules_install
> kernel_modules_install:
>         @xxxxxxx.latest; then \
>                 $(MAKE) -i -C $(AXIS_KERNEL_DIR)
INSTALL_MOD_PATH=$(prefix) \
>                         modules_install ; \
>         fi
>
> and change the dependency list of the "install" target so it looks like
this:
>
> install: kernel_modules_install files
>
> To inslude the installed modules you also need to add this to the
> "cramfs.img" target before meta_name2nbr is executed:
>
>                 if grep '^CONFIG_MODULES=y' kernelconfig.latest; then \
>                         if ! grep -q 'Include: modules' \
>                              $(prefix)/lib/romfs_meta.txt; then \
>                                 echo "##### Adding kernel modules #####" ;
\
>                                 echo "Include: modules" \
>                                      >> $(prefix)/lib/romfs_meta.txt; \
>                         fi ; \
>                 fi
>
> I think that will be all.
>
> Best regards
> /Jonas