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
nexedi
linux
Commits
37a472ae
Commit
37a472ae
authored
Nov 18, 2002
by
Jeff Dike
Browse files
Options
Browse Files
Download
Plain Diff
Merge uml.karaya.com:/home/jdike/linux/2.5/updates-2.5
into uml.karaya.com:/home/jdike/linux/2.5/net-2.5
parents
ad02fb22
47280afb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
17 deletions
+7
-17
arch/um/drivers/Makefile
arch/um/drivers/Makefile
+7
-17
No files found.
arch/um/drivers/Makefile
View file @
37a472ae
...
...
@@ -5,23 +5,14 @@
CHAN_OBJS
:=
chan_kern.o chan_user.o line.o
# This nonsense is due to kbuild. In the 2.4 build, I stick -lpcap in
# pcap-objs, and that is just included in the link command. The 2.5 kbuild
# filters out everything from pcap-objs which are not in the built-in.o
# dependencies, which are $(obj-y). So, -lpcap must be in $(obj-y), too.
# However, make magically expands -lfoo prerequisites into /usr/lib/libfoo.a
# file names. This causes the kbuild filtering to filter the -lpcap from
# pcap-objs, causing the link to fail.
# So, what this does is figure out by hand (crudely) what file -lpcap really
# is and just use it.
PCAP
=
$(
shell
for
f
in
echo
{
/lib,/usr/lib
}
/libpcap.a
;
do
\
[
-f
$$
f
]
&&
echo
$$
f
;
done
|
head
-1
)
# pcap is broken in 2.5 because kbuild doesn't allow pcap.a to be linked
# in to pcap.o
slip-objs
:=
slip_kern.o slip_user.o
slirp-objs
:=
slirp_kern.o slirp_user.o
daemon-objs
:=
daemon_kern.o daemon_user.o
mcast-objs
:=
mcast_kern.o mcast_user.o
pcap-objs
:=
pcap_kern.o pcap_user.o
$(PCAP)
#
pcap-objs := pcap_kern.o pcap_user.o $(PCAP)
net-objs
:=
net_kern.o net_user.o
mconsole-objs
:=
mconsole_kern.o mconsole_user.o
hostaudio-objs
:=
hostaudio_kern.o hostaudio_user.o
...
...
@@ -34,9 +25,10 @@ export-objs := mconsole_kern.o
obj-y
=
obj-$(CONFIG_SSL)
+=
ssl.o
obj-$(CONFIG_UML_NET_SLIP)
+=
slip.o
obj-$(CONFIG_UML_NET_SLIRP)
+=
slirp.o
obj-$(CONFIG_UML_NET_DAEMON)
+=
daemon.o
obj-$(CONFIG_UML_NET_MCAST)
+=
mcast.o
obj-$(CONFIG_UML_NET_PCAP)
+=
pcap.o
$(PCAP)
#
obj-$(CONFIG_UML_NET_PCAP) += pcap.o $(PCAP)
obj-$(CONFIG_UML_NET)
+=
net.o
obj-$(CONFIG_MCONSOLE)
+=
mconsole.o
obj-$(CONFIG_MMAPPER)
+=
mmapper_kern.o
...
...
@@ -50,8 +42,6 @@ obj-$(CONFIG_TTY_CHAN) += tty.o
obj-$(CONFIG_XTERM_CHAN)
+=
xterm.o xterm_kern.o
obj-$(CONFIG_UML_WATCHDOG)
+=
harddog.o
CFLAGS_pcap_user.o
=
-I
/usr/include/pcap
obj-y
+=
stdio_console.o
$(CHAN_OBJS)
USER_SINGLE_OBJS
=
$(
foreach
f,
$(
patsubst
%.o,%,
$
(
obj-y
)
$
(
obj-m
))
,
$
(
$(f)
-objs
))
...
...
@@ -63,7 +53,7 @@ USER_OBJS := $(foreach file,$(USER_OBJS),arch/um/drivers/$(file))
include
$(TOPDIR)/Rules.make
$(USER_OBJS)
:
%.o: %.c
$(CC)
$
(
CFLAGS_
$
@
)
$(USER_CFLAGS)
-c
-o
$@
$<
$(CC)
$
(
CFLAGS_
$
(
notdir
$@
)
)
$(USER_CFLAGS)
-c
-o
$@
$<
clean
:
...
...
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