Title: Re: [Systemimager-commits] r3289 - in trunk/initrd_source: . make.d
Hey Dann:
 
I am hardcoding "insmod" because INSMOD_BINARY expands to:
 
$(INITRD_SRC_DIR)/$(MODULE_INIT_TOOLS_DIR)/insmod.static
 
Which is different from INSMOD_BINARY.  I realize that hardcoding may be bad - so I can create a new variable INSMOD_BIN_STATIC or something like that - what do you think?.
 
Still, perhaps some libraries are missing from the initrd.img to prevent the dynamically compiled insmod from working...  right now modprobe doesn't work but I don't think there is a statically compiled version of it.
 
Thanks,
 
Bernard


From: [EMAIL PROTECTED] on behalf of dann frazier
Sent: Sat 10/12/2005 04:52
To: Bernard Li
Cc: [EMAIL PROTECTED]
Subject: Re: [Systemimager-commits] r3289 - in trunk/initrd_source: . make.d

On Sat, 2005-12-10 at 07:43 -0600, Bernard Li wrote:
> Author: bli
> Date: 2005-12-10 07:43:38 -0600 (Sat, 10 Dec 2005)
> New Revision: 3289
>
> Modified:
>    trunk/initrd_source/initrd.rul
>    trunk/initrd_source/make.d/module-init-tools.rul
> Log:
> Ashley Gould patch:
> - Use statically compiled insmod instead of the dynamically compiled one which does not work
>
>
> Modified: trunk/initrd_source/initrd.rul
> ===================================================================
> --- trunk/initrd_source/initrd.rul    2005-12-06 21:00:09 UTC (rev 3288)
> +++ trunk/initrd_source/initrd.rul    2005-12-10 13:43:38 UTC (rev 3289)
> @@ -140,13 +140,13 @@
>       cp -a $(UDPCAST_BINARY)     $(INITRD_BUILD_DIR)/bin
>      
>  ifdef        INSMOD_BINARY
> -     ( [ ! -e $(INITRD_BUILD_DIR)/sbin/$(INSMOD_BINARY) ] && \
> -          cp -a $(INSMOD_BINARY) $(INITRD_BUILD_DIR)/sbin ) || \
> +     ( [ ! -e $(INITRD_BUILD_DIR)/sbin/insmod ] && \
                 why hardcode the name here ^
> +          cp -a $(INSMOD_BINARY) $(INITRD_BUILD_DIR)/sbin/insmod ) || \
             and not here ^
>          ( echo "$(INITRD_BUILD_DIR)/sbin/$(INSMOD_BINARY) already exists." &&\
>            echo "Is insmod maybe already provided by busybox?" && exit 1 )
>  endif
>  ifdef        MODPROBE_BINARY
> -     ( [ ! -e $(INITRD_BUILD_DIR)/sbin/$(MODPROBE_BINARY) ] && \
> +     ( [ ! -e $(INITRD_BUILD_DIR)/sbin/modprobe ] && \
>            cp -a $(MODPROBE_BINARY) $(INITRD_BUILD_DIR)/sbin ) || \
ditto




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
systemimager-commits mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/systemimager-commits

Reply via email to