source: patches/linux-2.4-lfh-Makefile.patch@ 3d3002d

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 3d3002d was 617118d, checked in by Jim Gifford <clfs@…>, 19 years ago

r561@server (orig r559): root | 2005-06-05 02:38:49 -0700
Fixed Directory Structure

  • Property mode set to 100644
File size: 1.6 KB
  • linux-2.4.21/Makefile

    # To allow us to cross build the kernel, we fixes calls to
    # expr and xargs that used linux syntax, and call a patched
    # depmod.pl instead of the target native depmod.
    
    old new  
    347347        @rm -f .ver1
    348348
    349349include/linux/version.h: ./Makefile
    350         @expr length "$(KERNELRELEASE)" \<= $(uts_len) > /dev/null || \
     350        @expr "$(KERNELRELEASE)" : '.*' \<= $(uts_len) > /dev/null || \
    351351          (echo KERNELRELEASE \"$(KERNELRELEASE)\" exceeds $(uts_len) characters >&2; false)
    352352        @echo \#define UTS_RELEASE \"$(KERNELRELEASE)\" > .ver
    353353        @echo \#define LINUX_VERSION_CODE `expr $(VERSION) \\* 65536 + $(PATCHLEVEL) \\* 256 + $(SUBLEVEL)` >> .ver
     
    410410ifeq "$(strip $(INSTALL_MOD_PATH))" ""
    411411depmod_opts     :=
    412412else
    413 depmod_opts     := -b $(INSTALL_MOD_PATH) -r
     413depmod_opts     := -b $(INSTALL_MOD_PATH)/lib/modules/$(KERNELRELEASE)
    414414endif
    415415.PHONY: _modinst_post
    416416_modinst_post: _modinst_post_pcmcia
    417         if [ -r System.map ]; then $(DEPMOD) -ae -F System.map $(depmod_opts) $(KERNELRELEASE); fi
     417        if [ -r System.map ]; then depmod.pl -F System.map $(depmod_opts) -k vmlinux; fi
    418418
    419419# Backwards compatibilty symlinks for people still using old versions
    420420# of pcmcia-cs with hard coded pathnames on insmod.  Remove
     
    423423_modinst_post_pcmcia:
    424424        cd $(MODLIB); \
    425425        mkdir -p pcmcia; \
    426         find kernel -path '*/pcmcia/*' -name '*.o' | xargs -i -r ln -sf ../{} pcmcia
     426        find kernel -path '*/pcmcia/*' -name '*.o' -exec ln -sf '../{}' pcmcia \;
    427427
    428428.PHONY: $(patsubst %, _modinst_%, $(SUBDIRS))
    429429$(patsubst %, _modinst_%, $(SUBDIRS)) :
Note: See TracBrowser for help on using the repository browser.