clfs-1.2
clfs-2.1
clfs-3.0.0-systemd
clfs-3.0.0-sysvinit
systemd
sysvinit
Last change
on this file since 53ed05b was 7f65c0e, checked in by Jim Gifford <clfs@…>, 19 years ago |
r625@server (orig r623): jim | 2005-10-31 12:43:24 -0800
Final Move
|
-
Property mode
set to
100644
|
File size:
1.6 KB
|
Rev | Line | |
---|
[617118d] | 1 | # To allow us to cross build the kernel, we fixes calls to
|
---|
| 2 | # expr and xargs that used linux syntax, and call a patched
|
---|
| 3 | # depmod.pl instead of the target native depmod.
|
---|
| 4 |
|
---|
| 5 | --- linux-2.4.21/Makefile.orig Wed Aug 20 20:07:06 2003
|
---|
| 6 | +++ linux-2.4.21/Makefile Thu Aug 21 00:53:16 2003
|
---|
| 7 | @@ -347,7 +347,7 @@
|
---|
| 8 | @rm -f .ver1
|
---|
| 9 |
|
---|
| 10 | include/linux/version.h: ./Makefile
|
---|
| 11 | - @expr length "$(KERNELRELEASE)" \<= $(uts_len) > /dev/null || \
|
---|
| 12 | + @expr "$(KERNELRELEASE)" : '.*' \<= $(uts_len) > /dev/null || \
|
---|
| 13 | (echo KERNELRELEASE \"$(KERNELRELEASE)\" exceeds $(uts_len) characters >&2; false)
|
---|
| 14 | @echo \#define UTS_RELEASE \"$(KERNELRELEASE)\" > .ver
|
---|
| 15 | @echo \#define LINUX_VERSION_CODE `expr $(VERSION) \\* 65536 + $(PATCHLEVEL) \\* 256 + $(SUBLEVEL)` >> .ver
|
---|
| 16 | @@ -410,11 +410,11 @@
|
---|
| 17 | ifeq "$(strip $(INSTALL_MOD_PATH))" ""
|
---|
| 18 | depmod_opts :=
|
---|
| 19 | else
|
---|
| 20 | -depmod_opts := -b $(INSTALL_MOD_PATH) -r
|
---|
| 21 | +depmod_opts := -b $(INSTALL_MOD_PATH)/lib/modules/$(KERNELRELEASE)
|
---|
| 22 | endif
|
---|
| 23 | .PHONY: _modinst_post
|
---|
| 24 | _modinst_post: _modinst_post_pcmcia
|
---|
| 25 | - if [ -r System.map ]; then $(DEPMOD) -ae -F System.map $(depmod_opts) $(KERNELRELEASE); fi
|
---|
| 26 | + if [ -r System.map ]; then depmod.pl -F System.map $(depmod_opts) -k vmlinux; fi
|
---|
| 27 |
|
---|
| 28 | # Backwards compatibilty symlinks for people still using old versions
|
---|
| 29 | # of pcmcia-cs with hard coded pathnames on insmod. Remove
|
---|
| 30 | @@ -423,7 +423,7 @@
|
---|
| 31 | _modinst_post_pcmcia:
|
---|
| 32 | cd $(MODLIB); \
|
---|
| 33 | mkdir -p pcmcia; \
|
---|
| 34 | - find kernel -path '*/pcmcia/*' -name '*.o' | xargs -i -r ln -sf ../{} pcmcia
|
---|
| 35 | + find kernel -path '*/pcmcia/*' -name '*.o' -exec ln -sf '../{}' pcmcia \;
|
---|
| 36 |
|
---|
| 37 | .PHONY: $(patsubst %, _modinst_%, $(SUBDIRS))
|
---|
| 38 | $(patsubst %, _modinst_%, $(SUBDIRS)) :
|
---|
Note:
See
TracBrowser
for help on using the repository browser.