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
a06dbeaf
Commit
a06dbeaf
authored
Oct 02, 2002
by
Kai Germaschewski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kbuild: Add some bug traps
Makefiles which still use obsolete 2.4 constructs now give a warning.
parent
6f16ca99
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
10 deletions
+19
-10
Rules.make
Rules.make
+19
-10
No files found.
Rules.make
View file @
a06dbeaf
...
@@ -8,6 +8,23 @@ comma := ,
...
@@ -8,6 +8,23 @@ comma := ,
empty
:=
empty
:=
space
:=
$(empty)
$(empty)
space
:=
$(empty)
$(empty)
# Some bug traps
# ---------------------------------------------------------------------------
ifdef
O_TARGET
$(warning kbuild
:
Usage of O_TARGET is obsolete in 2.5. Please fix!
endif
ifdef
L_TARGET
ifneq
($(L_TARGET),lib.a)
$(warning kbuild
:
L_TARGET ($(L_TARGET)) should be renamed to lib.a. Please fix!)
endif
endif
ifdef
list-multi
$(warning kbuild
:
list-multi ($(list-multi)) is obsolete in 2.5. Please fix!)
endif
# Figure out paths
# Figure out paths
# ---------------------------------------------------------------------------
# ---------------------------------------------------------------------------
# Find the path relative to the toplevel dir, $(RELDIR), and express
# Find the path relative to the toplevel dir, $(RELDIR), and express
...
@@ -84,16 +101,8 @@ __obj-y = $(filter-out export.o,$(obj-y))
...
@@ -84,16 +101,8 @@ __obj-y = $(filter-out export.o,$(obj-y))
__obj-m
=
$(
filter-out
export.o,
$
(
obj-m
))
__obj-m
=
$(
filter-out
export.o,
$
(
obj-m
))
# if $(foo-objs) exists, foo.o is a composite object
# if $(foo-objs) exists, foo.o is a composite object
__multi-used-y
:=
$(
sort
$(
foreach
m,
$
(
__obj-y
)
,
$(
if
$
(
$
(
m:.o
=
-objs
))
,
$(m)
)))
multi-used-y
:=
$(
sort
$(
foreach
m,
$
(
__obj-y
)
,
$(
if
$
(
$
(
m:.o
=
-objs
))
,
$(m)
)))
__multi-used-m
:=
$(
sort
$(
foreach
m,
$
(
__obj-m
)
,
$(
if
$
(
$
(
m:.o
=
-objs
))
,
$(m)
)))
multi-used-m
:=
$(
sort
$(
foreach
m,
$
(
__obj-m
)
,
$(
if
$
(
$
(
m:.o
=
-objs
))
,
$(m)
)))
# FIXME: Rip this out later
# Backwards compatibility: if a composite object is listed in
# $(list-multi), skip it here, since the Makefile will have an explicit
# link rule for it
multi-used-y
:=
$(
filter-out
$
(
list-multi
)
,
$
(
__multi-used-y
))
multi-used-m
:=
$(
filter-out
$
(
list-multi
)
,
$
(
__multi-used-m
))
# Build list of the parts of our composite objects, our composite
# Build list of the parts of our composite objects, our composite
# objects depend on those (obviously)
# objects depend on those (obviously)
...
...
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