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
050aa25b
Commit
050aa25b
authored
Sep 22, 2002
by
Kai Germaschewski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kbuild: arch/um cleanup / O_TARGET removal
parent
3c6c1425
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
17 additions
and
72 deletions
+17
-72
arch/um/Makefile
arch/um/Makefile
+5
-7
arch/um/drivers/Makefile
arch/um/drivers/Makefile
+1
-26
arch/um/kernel/Makefile
arch/um/kernel/Makefile
+8
-22
arch/um/os-Linux/Makefile
arch/um/os-Linux/Makefile
+0
-2
arch/um/os-Linux/drivers/Makefile
arch/um/os-Linux/drivers/Makefile
+0
-11
arch/um/ptproxy/Makefile
arch/um/ptproxy/Makefile
+1
-1
arch/um/sys-i386/Makefile
arch/um/sys-i386/Makefile
+0
-1
arch/um/sys-ia64/Makefile
arch/um/sys-ia64/Makefile
+1
-1
arch/um/sys-ppc/Makefile
arch/um/sys-ppc/Makefile
+1
-1
No files found.
arch/um/Makefile
View file @
050aa25b
...
@@ -35,14 +35,12 @@ ARCH_SUBDIRS = $(ARCH_DIR)/drivers $(ARCH_DIR)/kernel \
...
@@ -35,14 +35,12 @@ ARCH_SUBDIRS = $(ARCH_DIR)/drivers $(ARCH_DIR)/kernel \
SUBDIRS
+=
$(ARCH_SUBDIRS)
SUBDIRS
+=
$(ARCH_SUBDIRS)
LIBS
+=
$(ARCH_DIR)
/kernel/um.o
\
core-y
+=
$(ARCH_DIR)
/kernel/
\
$(ARCH_DIR)
/drivers/drivers.o
\
+
=
$(ARCH_DIR)
/drivers/
\
$(ARCH_DIR)
/sys-
$(SUBARCH)
/sys.o
$(ARCH_DIR)
/os/os.o
+
=
$(ARCH_DIR)
/sys-
$(SUBARCH)
/
\
+
=
$(ARCH_DIR)
/os-
$(OS)
/
ifeq
($(CONFIG_PT_PROXY), y)
libs-$(CONFIG_PT_PROXY)
+=
$(ARCH_DIR)
/ptproxy/
SUBDIRS
+=
$(ARCH_DIR)
/ptproxy
LIBS
+=
$(ARCH_DIR)
/ptproxy/ptproxy.a
endif
ARCH_INCLUDE
=
$(TOPDIR)
/
$(ARCH_DIR)
/include
ARCH_INCLUDE
=
$(TOPDIR)
/
$(ARCH_DIR)
/include
...
...
arch/um/drivers/Makefile
View file @
050aa25b
...
@@ -3,13 +3,8 @@
...
@@ -3,13 +3,8 @@
# Licensed under the GPL
# Licensed under the GPL
#
#
O_TARGET
:=
drivers.o
CHAN_OBJS
:=
chan_kern.o chan_user.o line.o
CHAN_OBJS
:=
chan_kern.o chan_user.o line.o
list-multi
:=
slip.o daemon.o mcast.o mconsole.o net.o ubd.o hostaudio.o
\
port.o harddog.o
slip-objs
:=
slip_kern.o slip_user.o
slip-objs
:=
slip_kern.o slip_user.o
daemon-objs
:=
daemon_kern.o daemon_user.o
daemon-objs
:=
daemon_kern.o daemon_user.o
mcast-objs
:=
mcast_kern.o mcast_user.o
mcast-objs
:=
mcast_kern.o mcast_user.o
...
@@ -60,25 +55,5 @@ fastdep:
...
@@ -60,25 +55,5 @@ fastdep:
dep
:
dep
:
archmrproper
:
archmrproper
:
clean
daemon.o
:
$(daemon-objs)
slip.o
:
$(slip-objs)
mcast.o
:
$(mcast-objs)
mconsole.o
:
$(mconsole-objs)
net.o
:
$(net-objs)
hostaudio.o
:
$(hostaudio-objs)
ubd.o
:
$(ubd-objs)
port.o
:
$(port-objs)
harddog.o
:
$(harddog-objs)
$(list-multi)
:
#
This doesn't work
,
but should : '%.o : $(%-objs)'
$(LD)
$(LD_RFLAG)
-r
-o
$@
$
(
$(
patsubst
%.o,%,
$@
)
-objs
)
arch/um/kernel/Makefile
View file @
050aa25b
O_TARGET
=
um.o
EXTRA_TARGETS
:=
unmap_fin.o
obj-y
=
config.o exec_kern.o exec_user.o exitcode.o frame_kern.o frame.o
\
obj-y
=
config.o exec_kern.o exec_user.o exitcode.o frame_kern.o frame.o
\
helper.o init_task.o irq.o irq_user.o ksyms.o mem.o mem_user.o
\
helper.o init_task.o irq.o irq_user.o ksyms.o mem.o mem_user.o
\
...
@@ -8,17 +9,16 @@ obj-y = config.o exec_kern.o exec_user.o exitcode.o frame_kern.o frame.o \
...
@@ -8,17 +9,16 @@ obj-y = config.o exec_kern.o exec_user.o exitcode.o frame_kern.o frame.o \
time_kern.o tlb.o trap_kern.o trap_user.o uaccess_user.o um_arch.o
\
time_kern.o tlb.o trap_kern.o trap_user.o uaccess_user.o um_arch.o
\
umid.o user_util.o
umid.o user_util.o
ifeq
($(CONFIG_BLK_DEV_INITRD), y)
obj-$(CONFIG_BLK_DEV_INITRD)
+=
initrd_kern.o initrd_user.o
obj-y
+=
initrd_kern.o initrd_user.o
endif
endif
# user_syms.o not included here because Rules.make has its own ideas about
# user_syms.o not included here because Rules.make has its own ideas about
# building anything in export-objs
# building anything in export-objs
USER_OBJS
=
$(
filter
%_user.o,
$
(
obj-y
))
config.o process.o time.o umid.o
\
USER_OBJS
=
$(
filter
%_user.o,
$
(
obj-y
))
config.o process.o time.o umid.o
\
user_util.o user_syms.o helper.o
user_util.o user_syms.o helper.o
tty_log.o
export-objs
:=
ksyms.o process_kern.o signal_kern.o
export-objs
:=
ksyms.o process_kern.o signal_kern.o
gprof_syms.o gmon_syms.o
UNMAP_CFLAGS
:=
$(
patsubst
-pg
-DPROFILING
,,
$(USER_CFLAGS)
)
UNMAP_CFLAGS
:=
$(
patsubst
-pg
-DPROFILING
,,
$(USER_CFLAGS)
)
UNMAP_CFLAGS
:=
$(
patsubst
-fprofile-arcs
-ftest-coverage
,,
$(UNMAP_CFLAGS)
)
UNMAP_CFLAGS
:=
$(
patsubst
-fprofile-arcs
-ftest-coverage
,,
$(UNMAP_CFLAGS)
)
...
@@ -31,21 +31,9 @@ ifeq ($(CONFIG_MODVERSIONS), y)
...
@@ -31,21 +31,9 @@ ifeq ($(CONFIG_MODVERSIONS), y)
DMODVERSIONS
=
-D__CONFIG_MODVERSIONS__
DMODVERSIONS
=
-D__CONFIG_MODVERSIONS__
endif
endif
ifeq
($(CONFIG_GPROF), y)
obj-$(CONFIG_GPROF)
+=
gprof_syms.o
obj-y
+=
gprof_syms.o
obj-$(CONFIG_GCOV)
+=
gmon_syms.o
export-objs
+=
gprof_syms.o
obj-$(CONFIG_TTY_LOG)
+=
tty_log.o
endif
ifeq
($(CONFIG_GCOV), y)
obj-y
+=
gmon_syms.o
export-objs
+=
gmon_syms.o
endif
ifeq
($(CONFIG_TTY_LOG), y)
obj-y
+=
tty_log.o
USER_OBJS
+=
tty_log.o
endif
CFLAGS_user_syms.o
=
-D__AUTOCONF_INCLUDED__
$(DMODULES)
$(DMODVERSIONS)
\
CFLAGS_user_syms.o
=
-D__AUTOCONF_INCLUDED__
$(DMODULES)
$(DMODVERSIONS)
\
-I
/usr/include
-I
../include
-I
/usr/include
-I
../include
...
@@ -54,8 +42,6 @@ CFLAGS_frame.o := $(patsubst -fomit-frame-pointer,,$(USER_CFLAGS))
...
@@ -54,8 +42,6 @@ CFLAGS_frame.o := $(patsubst -fomit-frame-pointer,,$(USER_CFLAGS))
include
$(TOPDIR)/Rules.make
include
$(TOPDIR)/Rules.make
$(O_TARGET)
:
unmap_fin.o
$(USER_OBJS)
:
%.o: %.c
$(USER_OBJS)
:
%.o: %.c
$(CC)
$
(
CFLAGS_
$@
)
$(USER_CFLAGS)
-c
-o
$@
$<
$(CC)
$
(
CFLAGS_
$@
)
$(USER_CFLAGS)
-c
-o
$@
$<
...
...
arch/um/os-Linux/Makefile
View file @
050aa25b
...
@@ -3,8 +3,6 @@
...
@@ -3,8 +3,6 @@
# Licensed under the GPL
# Licensed under the GPL
#
#
O_TARGET
=
os.o
obj-y
=
file.o process.o tty.o
obj-y
=
file.o process.o tty.o
include
$(TOPDIR)/Rules.make
include
$(TOPDIR)/Rules.make
...
...
arch/um/os-Linux/drivers/Makefile
View file @
050aa25b
...
@@ -3,10 +3,6 @@
...
@@ -3,10 +3,6 @@
# Licensed under the GPL
# Licensed under the GPL
#
#
O_TARGET
:=
drivers.o
list-multi
:=
tuntap.o ethertap.o
ethertap-objs
:=
ethertap_kern.o ethertap_user.o
ethertap-objs
:=
ethertap_kern.o ethertap_user.o
tuntap-objs
:=
tuntap_kern.o tuntap_user.o
tuntap-objs
:=
tuntap_kern.o tuntap_user.o
...
@@ -22,10 +18,3 @@ include $(TOPDIR)/Rules.make
...
@@ -22,10 +18,3 @@ include $(TOPDIR)/Rules.make
$(USER_OBJS)
:
%.o: %.c
$(USER_OBJS)
:
%.o: %.c
$(CC)
$
(
CFLAGS_
$@
)
$(USER_CFLAGS)
-c
-o
$@
$<
$(CC)
$
(
CFLAGS_
$@
)
$(USER_CFLAGS)
-c
-o
$@
$<
ethertap.o
:
$(ethertap-objs)
tuntap.o
:
$(tuntap-objs)
$(list-multi)
:
#
This doesn't work
,
but should : '%.o : $(%-objs)'
$(LD)
$(LD_RFLAG)
-r
-o
$@
$
(
$(
patsubst
%.o,%,
$@
)
-objs
)
arch/um/ptproxy/Makefile
View file @
050aa25b
LIB
=
ptproxy
.a
LIB
=
lib
.a
OBJS
=
proxy.o ptrace.o sysdep.o wait.o
OBJS
=
proxy.o ptrace.o sysdep.o wait.o
...
...
arch/um/sys-i386/Makefile
View file @
050aa25b
O_TARGET
=
sys.o
obj-y
=
bugs.o checksum.o extable.o fault.o ksyms.o ldt.o old-checksum.o
\
obj-y
=
bugs.o checksum.o extable.o fault.o ksyms.o ldt.o old-checksum.o
\
ptrace.o ptrace_user.o semaphore.o sigcontext.o syscalls.o sysrq.o
ptrace.o ptrace_user.o semaphore.o sigcontext.o syscalls.o sysrq.o
...
...
arch/um/sys-ia64/Makefile
View file @
050aa25b
OBJ
=
sys
.o
OBJ
=
built-in
.o
OBJS
=
OBJS
=
...
...
arch/um/sys-ppc/Makefile
View file @
050aa25b
OBJ
=
sys
.o
OBJ
=
built-in
.o
.S.o
:
.S.o
:
$(CC)
$(AFLAGS)
-D__ASSEMBLY__
-D__UM_PPC__
-c
$<
-o
$*
.o
$(CC)
$(AFLAGS)
-D__ASSEMBLY__
-D__UM_PPC__
-c
$<
-o
$*
.o
...
...
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