source:
scripts/patches/linux-2.4-lfh-Makefile.patch@
f013de9
Last change on this file since f013de9 was 7f65c0e, checked in by , 19 years ago | |
---|---|
|
|
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 347 347 @rm -f .ver1 348 348 349 349 include/linux/version.h: ./Makefile 350 @expr length "$(KERNELRELEASE)"\<= $(uts_len) > /dev/null || \350 @expr "$(KERNELRELEASE)" : '.*' \<= $(uts_len) > /dev/null || \ 351 351 (echo KERNELRELEASE \"$(KERNELRELEASE)\" exceeds $(uts_len) characters >&2; false) 352 352 @echo \#define UTS_RELEASE \"$(KERNELRELEASE)\" > .ver 353 353 @echo \#define LINUX_VERSION_CODE `expr $(VERSION) \\* 65536 + $(PATCHLEVEL) \\* 256 + $(SUBLEVEL)` >> .ver … … 410 410 ifeq "$(strip $(INSTALL_MOD_PATH))" "" 411 411 depmod_opts := 412 412 else 413 depmod_opts := -b $(INSTALL_MOD_PATH) -r413 depmod_opts := -b $(INSTALL_MOD_PATH)/lib/modules/$(KERNELRELEASE) 414 414 endif 415 415 .PHONY: _modinst_post 416 416 _modinst_post: _modinst_post_pcmcia 417 if [ -r System.map ]; then $(DEPMOD) -ae -F System.map $(depmod_opts) $(KERNELRELEASE); fi417 if [ -r System.map ]; then depmod.pl -F System.map $(depmod_opts) -k vmlinux; fi 418 418 419 419 # Backwards compatibilty symlinks for people still using old versions 420 420 # of pcmcia-cs with hard coded pathnames on insmod. Remove … … 423 423 _modinst_post_pcmcia: 424 424 cd $(MODLIB); \ 425 425 mkdir -p pcmcia; \ 426 find kernel -path '*/pcmcia/*' -name '*.o' | xargs -i -r ln -sf ../{} pcmcia426 find kernel -path '*/pcmcia/*' -name '*.o' -exec ln -sf '../{}' pcmcia \; 427 427 428 428 .PHONY: $(patsubst %, _modinst_%, $(SUBDIRS)) 429 429 $(patsubst %, _modinst_%, $(SUBDIRS)) :
Note:
See TracBrowser
for help on using the repository browser.