Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
7ae54460
Commit
7ae54460
authored
Feb 09, 2003
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Plain Diff
Merge
http://linux-isdn.bkbits.net/linux-2.5.make
into home.transmeta.com:/home/torvalds/v2.5/linux
parents
14c4c69d
66e01461
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
5 deletions
+14
-5
Makefile
Makefile
+1
-0
scripts/Makefile.build
scripts/Makefile.build
+7
-4
scripts/Makefile.modver
scripts/Makefile.modver
+6
-1
No files found.
Makefile
View file @
7ae54460
...
...
@@ -408,6 +408,7 @@ ifdef CONFIG_MODVERSIONS
ifdef
KBUILD_MODULES
ifeq
($(origin SUBDIRS),file)
$(Q)
rm
-rf
$(MODVERDIR)
$(Q)
mkdir
$(MODVERDIR)
else
@
echo
'*** Warning: Overriding SUBDIRS on the command line can cause'
@
echo
'*** inconsistencies with module symbol versions'
...
...
scripts/Makefile.build
View file @
7ae54460
...
...
@@ -15,8 +15,12 @@ include $(obj)/Makefile
include
scripts/Makefile.lib
ifdef
export-objs
$(warning kbuild
:
$(obj)/Makefile - Usage of export-objs is obsolete in 2.5. Please fix!)
endif
ifdef
O_TARGET
$(
error
kbuild
:
$(obj)/Makefile - Usage of O_TARGET := $(O_TARGET) is obsolete in 2.5. Please fix!)
$(
warning
kbuild
:
$(obj)/Makefile - Usage of O_TARGET := $(O_TARGET) is obsolete in 2.5. Please fix!)
endif
ifdef
L_TARGET
...
...
@@ -47,7 +51,7 @@ endif
ifdef
CONFIG_MODVERSIONS
modules
:=
$
(
obj-m
)
touch-module
=
@
mkdir
-p
$(MODVERDIR)
/
$
(
@D
)
;
touch
$(MODVERDIR)
/
$
(
@:.o
=
.ko
)
touch-module
=
@
echo
$
(
@:.o
=
.ko
)
>
.tmp_versions/
$
(
@F:.o
=
.mod
)
else
modules
:=
$
(
obj-m:.o
=
.ko
)
endif
...
...
@@ -90,8 +94,7 @@ define rule_vcc_o_c
else
\
$(CPP)
-D__GENKSYMS__
$(c_flags)
$<
\
|
$(GENKSYMS)
-k
$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)
\
|
grep
__ver
\
|
sed
's/\#define __ver_\([^ ]*\)[ ]*\([^ ]*\)/__crc_\1 = 0x\2 ;/g'
\
|
sed
-n
's/\#define __ver_\(\w*\)\W*\(\w*\)/__crc_\1 = 0x\2 ;/gp'
\
> $(@D)/.tmp_$(@F
:
.o=.ver);
\
\
$(LD) $(LDFLAGS) -r -o $@ $(@D)/.tmp_$(@F)
\
...
...
scripts/Makefile.modver
View file @
7ae54460
...
...
@@ -9,7 +9,12 @@ include scripts/Makefile.lib
#
modules
:=
$(
patsubst
./%,%,
$(
shell
cd
$(MODVERDIR)
;
find
.
-name
\*
.ko
))
__modules
:=
$(
shell
cd
$(MODVERDIR)
;
cat
*
.mod
)
modules
:=
$(
patsubst
%.o,%.ko,
$(
wildcard
$(__modules:.ko=.o)
))
ifneq
($(filter-out $(modules),$(__modules)),)
$(warning
***
Uh-oh,
you
have
stale
module
entries.
You
messed
with
SUBDIRS,
don't
complain
if
something
goes
wrong.)
endif
__modversions
:
$(modules)
@
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment