Commit f54e16ee authored by Sam Ravnborg's avatar Sam Ravnborg

[PATCH] all archs: Replace O_TARGET with lib-y

lib-y is the new way to define what objects belongs to a library.  The
implementation was not made backwards compatible and therefore an update
to all architectures are needed.

This is a simple replacement of obj-* to lib-* and deletion of L_TARGET.
The new mechanish where lib.a can be mixed with built-in.o is not
utilised.
parent 4949833a
......@@ -5,8 +5,6 @@
EXTRA_AFLAGS := $(CFLAGS)
EXTRA_CFLAGS := -Werror
L_TARGET := lib.a
# Many of these routines have implementations tuned for ev6.
# Choose them iff we're targeting ev6 specifically.
ev6-$(CONFIG_ALPHA_EV6) := ev6-
......@@ -14,7 +12,7 @@ ev6-$(CONFIG_ALPHA_EV6) := ev6-
# Several make use of the cttz instruction introduced in ev67.
ev67-$(CONFIG_ALPHA_EV67) := ev67-
obj-y = __divqu.o __remqu.o __divlu.o __remlu.o \
lib-y = __divqu.o __remqu.o __divlu.o __remlu.o \
udelay.o \
$(ev6-y)memset.o \
$(ev6-y)memcpy.o \
......@@ -43,7 +41,7 @@ obj-y = __divqu.o __remqu.o __divlu.o __remlu.o \
fpreg.o \
callback_srm.o srm_puts.o srm_printk.o
obj-$(CONFIG_SMP) += dec_and_lock.o
lib-$(CONFIG_SMP) += dec_and_lock.o
# The division routines are built from single source, with different defines.
AFLAGS___divqu.o = -DDIV
......
......@@ -4,9 +4,7 @@
# Copyright (C) 1995-2000 Russell King
#
L_TARGET := lib.a
obj-y := backtrace.o changebit.o csumipv6.o csumpartial.o \
lib-y := backtrace.o changebit.o csumipv6.o csumpartial.o \
csumpartialcopy.o csumpartialcopyuser.o clearbit.o \
copy_page.o delay.o findbit.o memchr.o memcpy.o \
memset.o memzero.o setbit.o strncpy_from_user.o \
......@@ -14,17 +12,15 @@ obj-y := backtrace.o changebit.o csumipv6.o csumpartial.o \
testclearbit.o testsetbit.o uaccess.o getuser.o \
putuser.o ashldi3.o ashrdi3.o lshrdi3.o muldi3.o \
ucmpdi2.o udivdi3.o lib1funcs.o div64.o
obj-m :=
obj-n :=
obj-arc := ecard.o io-acorn.o floppydma.o
obj-rpc := ecard.o io-acorn.o floppydma.o
obj-clps7500 := io-acorn.o
obj-l7200 := io-acorn.o
obj-shark := io-shark.o
obj-edb7211 := io-acorn.o
lib-arc := ecard.o io-acorn.o floppydma.o
lib-rpc := ecard.o io-acorn.o floppydma.o
lib-clps7500 := io-acorn.o
lib-l7200 := io-acorn.o
lib-shark := io-shark.o
lib-edb7211 := io-acorn.o
obj-y += $(obj-$(MACHINE))
lib-y += $(lib-$(MACHINE))
ifeq ($(CONFIG_CPU_32v3),y)
v3 := y
......@@ -34,10 +30,10 @@ else
v4 := y
endif
obj-y += io-readsb.o io-writesb.o
obj-$(v3) += io-readsw-armv3.o io-writesw-armv3.o io-readsl-armv3.o
obj-$(v4) += io-readsw-armv4.o io-writesw-armv4.o io-readsl-armv4.o
obj-y += io-writesl.o
lib-y += io-readsb.o io-writesb.o
lib-$(v3) += io-readsw-armv3.o io-writesw-armv3.o io-readsl-armv3.o
lib-$(v4) += io-readsw-armv4.o io-writesw-armv4.o io-readsl-armv4.o
lib-y += io-writesl.o
$(obj)/csumpartialcopy.o: $(obj)/csumpartialcopygeneric.S
$(obj)/csumpartialcopyuser.o: $(obj)/csumpartialcopygeneric.S
......
......@@ -2,8 +2,6 @@
# Makefile for Etrax-specific library files..
#
L_TARGET = lib.a
EXTRA_AFLAGS := -traditional
obj-y = checksum.o checksumcopy.o string.o usercopy.o memset.o csumcpfruser.o
lib-y = checksum.o checksumcopy.o string.o usercopy.o memset.o csumcpfruser.o
......@@ -5,5 +5,4 @@
.S.o:
$(CC) $(AFLAGS) -D__ASSEMBLY__ -c $< -o $@
L_TARGET = lib.a
obj-y = ashrdi3.o checksum.o memcpy.o memset.o abs.o
lib-y = ashrdi3.o checksum.o memcpy.o memset.o abs.o
......@@ -2,18 +2,16 @@
# Makefile for ia64-specific library routines..
#
L_TARGET = lib.a
obj-y := __divsi3.o __udivsi3.o __modsi3.o __umodsi3.o \
lib-y := __divsi3.o __udivsi3.o __modsi3.o __umodsi3.o \
__divdi3.o __udivdi3.o __moddi3.o __umoddi3.o \
checksum.o clear_page.o csum_partial_copy.o copy_page.o \
clear_user.o strncpy_from_user.o strlen_user.o strnlen_user.o \
flush.o io.o ip_fast_csum.o do_csum.o \
memset.o strlen.o swiotlb.o
obj-$(CONFIG_ITANIUM) += copy_page.o copy_user.o memcpy.o
obj-$(CONFIG_MCKINLEY) += copy_page_mck.o memcpy_mck.o
obj-$(CONFIG_PERFMON) += carta_random.o
lib-$(CONFIG_ITANIUM) += copy_page.o copy_user.o memcpy.o
lib-$(CONFIG_MCKINLEY) += copy_page_mck.o memcpy_mck.o
lib-$(CONFIG_PERFMON) += carta_random.o
IGNORE_FLAGS_OBJS = __divsi3.o __udivsi3.o __modsi3.o __umodsi3.o \
__divdi3.o __udivdi3.o __moddi3.o __umoddi3.o
......
......@@ -2,9 +2,7 @@
# Makefile for m68k-specific library files..
#
L_TARGET = lib.a
EXTRA_AFLAGS := -traditional
obj-y := ashldi3.o ashrdi3.o lshrdi3.o muldi3.o \
lib-y := ashldi3.o ashrdi3.o lshrdi3.o muldi3.o \
checksum.o memcmp.o memcpy.o memset.o semaphore.o
......@@ -2,7 +2,6 @@
# Makefile for m68knommu specific library files..
#
L_TARGET = lib.a
obj-y := ashldi3.o ashrdi3.o lshrdi3.o \
lib-y := ashldi3.o ashrdi3.o lshrdi3.o \
muldi3.o mulsi3.o divsi3.o udivsi3.o modsi3.o umodsi3.o \
checksum.o semaphore.o memcpy.o memset.o
......@@ -3,9 +3,7 @@
# under Linux.
#
L_TARGET = lib.a
obj-y += console.o init.o memory.o tree.o env.o cmdline.o misc.o \
lib-y += console.o init.o memory.o tree.o env.o cmdline.o misc.o \
time.o file.o identify.o
obj-$(CONFIG_ARC_CONSOLE) += arc_con.o
lib-$(CONFIG_ARC_CONSOLE) += arc_con.o
......@@ -2,6 +2,4 @@
# Makefile for the Baget/MIPS prom emulator library routines.
#
L_TARGET := lib.a
obj-y := init.o
lib-y := init.o
......@@ -3,9 +3,7 @@
# under Linux.
#
L_TARGET := lib.a
obj-y := init.o memory.o cmdline.o identify.o locore.o
lib-y := init.o memory.o cmdline.o identify.o locore.o
EXTRA_AFLAGS := $(CFLAGS)
......
......@@ -2,21 +2,19 @@
# Makefile for MIPS-specific library files..
#
L_TARGET = lib.a
EXTRA_AFLAGS := $(CFLAGS)
obj-y += csum_partial.o csum_partial_copy.o \
lib-y += csum_partial.o csum_partial_copy.o \
rtc-std.o rtc-no.o memcpy.o memset.o \
watch.o strlen_user.o strncpy_user.o \
strnlen_user.o
ifdef CONFIG_CPU_R3000
obj-y += r3k_dump_tlb.o
lib-y += r3k_dump_tlb.o
else
obj-y += dump_tlb.o
lib-y += dump_tlb.o
endif
obj-$(CONFIG_BLK_DEV_FD) += floppy-no.o floppy-std.o
obj-$(CONFIG_IDE) += ide-std.o ide-no.o
obj-$(CONFIG_PC_KEYB) += kbd-std.o kbd-no.o
lib-$(CONFIG_BLK_DEV_FD) += floppy-no.o floppy-std.o
lib-$(CONFIG_IDE) += ide-std.o ide-no.o
lib-$(CONFIG_PC_KEYB) += kbd-std.o kbd-no.o
......@@ -2,9 +2,8 @@
# Makefile for the ARC prom monitor library routines under Linux.
#
L_TARGET = lib.a
obj-y := console.o init.o identify.o tree.o env.o cmdline.o misc.o time.o \
lib-y := console.o init.o identify.o tree.o env.o cmdline.o misc.o time.o \
file.o
obj-$(CONFIG_ARC_MEMORY) += memory.o
obj-$(CONFIG_ARC_CONSOLE) += arc_con.o
lib-$(CONFIG_ARC_MEMORY) += memory.o
lib-$(CONFIG_ARC_CONSOLE) += arc_con.o
......@@ -4,9 +4,7 @@
EXTRA_AFLAGS := $(CFLAGS)
L_TARGET = lib.a
obj-y += csum_partial.o csum_partial_copy.o dump_tlb.o floppy-std.o \
lib-y += csum_partial.o csum_partial_copy.o dump_tlb.o floppy-std.o \
floppy-no.o ide-std.o ide-no.o kbd-std.o kbd-no.o rtc-std.o \
rtc-no.o memset.o memcpy.o strlen_user.o strncpy_user.o \
strnlen_user.o watch.o
......@@ -5,7 +5,5 @@
EXTRA_AFLAGS := $(CFLAGS)
L_TARGET = lib.a
obj-y += ip22-berr.o ip22-mc.o ip22-sc.o ip22-hpc.o ip22-int.o ip22-rtc.o \
lib-y += ip22-berr.o ip22-mc.o ip22-sc.o ip22-hpc.o ip22-int.o ip22-rtc.o \
ip22-setup.o system.o ip22-timer.o ip22-irq.o ip22-reset.o time.o
......@@ -2,5 +2,4 @@
# Makefile for parisc-specific library files
#
L_TARGET := lib.a
obj-y := lusercopy.o bitops.o checksum.o io.o memset.o
lib-y := lusercopy.o bitops.o checksum.o io.o memset.o
......@@ -8,10 +8,8 @@
# Tom Rini January 2001
#
L_TARGET := lib.a
obj-y := string.o util.o misc-common.o
obj-$(CONFIG_PPC_PREP) += mpc10x_memory.o
obj-$(CONFIG_LOPEC) += mpc10x_memory.o
obj-$(CONFIG_PAL4) += cpc700_memory.o
obj-$(CONFIG_SERIAL_8250_CONSOLE) += ns16550.o
lib-y := string.o util.o misc-common.o
lib-$(CONFIG_PPC_PREP) += mpc10x_memory.o
lib-$(CONFIG_LOPEC) += mpc10x_memory.o
lib-$(CONFIG_PAL4) += cpc700_memory.o
lib-$(CONFIG_SERIAL_8250_CONSOLE) += ns16550.o
......@@ -2,6 +2,4 @@
# Makefile for some libs needed by zImage.
#
L_TARGET := lib.a
obj-y := zlib.o div64.o
lib-y := zlib.o div64.o
......@@ -2,7 +2,5 @@
# Makefile of1275 stuff
#
L_TARGET := lib.a
obj-y := claim.o enter.o exit.o finddevice.o getprop.o ofinit.o \
lib-y := claim.o enter.o exit.o finddevice.o getprop.o ofinit.o \
ofstdio.o read.o release.o write.o
......@@ -2,7 +2,5 @@
# Makefile for ppc64-specific library files..
#
L_TARGET = lib.a
obj-y := checksum.o dec_and_lock.o string.o strcase.o
obj-y += copypage.o memcpy.o copyuser.o
lib-y := checksum.o dec_and_lock.o string.o strcase.o
lib-y += copypage.o memcpy.o copyuser.o
......@@ -2,10 +2,8 @@
# Makefile for s390-specific library files..
#
L_TARGET = lib.a
EXTRA_AFLAGS := -traditional
obj-y += delay.o
obj-$(CONFIG_ARCH_S390_31) += memset.o strcmp.o strncpy.o uaccess.o
obj-$(CONFIG_ARCH_S390X) += memset64.o strcmp64.o strncpy64.o uaccess64.o
lib-y += delay.o
lib-$(CONFIG_ARCH_S390_31) += memset.o strcmp.o strncpy.o uaccess.o
lib-$(CONFIG_ARCH_S390X) += memset64.o strcmp64.o strncpy64.o uaccess64.o
......@@ -2,6 +2,5 @@
# Makefile for SuperH-specific library files..
#
L_TARGET = lib.a
obj-y = delay.o memcpy.o memset.o memmove.o memchr.o \
lib-y = delay.o memcpy.o memset.o memmove.o memchr.o \
checksum.o strcasecmp.o strlen.o
......@@ -2,11 +2,9 @@
# Makefile for Sparc library files..
#
L_TARGET = lib.a
EXTRA_AFLAGS := -ansi -DST_DIV0=0x02
obj-y := mul.o rem.o sdiv.o udiv.o umul.o urem.o ashrdi3.o memcpy.o memset.o \
lib-y := mul.o rem.o sdiv.o udiv.o umul.o urem.o ashrdi3.o memcpy.o memset.o \
strlen.o checksum.o blockops.o memscan.o memcmp.o strncmp.o \
strncpy_from_user.o divdi3.o udivdi3.o strlen_user.o \
copy_user.o locks.o atomic.o bitops.o debuglocks.o lshrdi3.o \
......
......@@ -3,9 +3,7 @@
# Linux.
#
L_TARGET = lib.a
obj-y := bootstr.o devmap.o devops.o init.o memory.o misc.o mp.o \
lib-y := bootstr.o devmap.o devops.o init.o memory.o misc.o mp.o \
palloc.o ranges.o segment.o console.o printf.o tree.o
obj-$(CONFIG_SUN4) += sun4prom.o
lib-$(CONFIG_SUN4) += sun4prom.o
......@@ -5,8 +5,7 @@
EXTRA_AFLAGS := -ansi
EXTRA_CFLAGS := -Werror
L_TARGET = lib.a
obj-y := PeeCeeI.o blockops.o debuglocks.o strlen.o strncmp.o \
lib-y := PeeCeeI.o blockops.o debuglocks.o strlen.o strncmp.o \
memscan.o strncpy_from_user.o strlen_user.o memcmp.o checksum.o \
VIScopy.o VISbzero.o VISmemset.o VIScsum.o VIScsumcopy.o \
VIScsumcopyusr.o VISsave.o atomic.o rwlock.o bitops.o \
......
......@@ -6,6 +6,5 @@
EXTRA_AFLAGS := -ansi
EXTRA_CFLAGS := -Werror
L_TARGET = lib.a
obj-y := bootstr.o devops.o init.o memory.o misc.o \
lib-y := bootstr.o devops.o init.o memory.o misc.o \
tree.o console.o printf.o p1275.o map.o
......@@ -2,6 +2,5 @@
# arch/v850/lib/Makefile
#
L_TARGET = lib.a
obj-y = ashrdi3.o ashldi3.o lshrdi3.o muldi3.o negdi2.o \
lib-y = ashrdi3.o ashldi3.o lshrdi3.o muldi3.o negdi2.o \
checksum.o memcpy.o memset.o
......@@ -2,13 +2,12 @@
# Makefile for x86_64-specific library files.
#
L_TARGET := lib.a
CFLAGS_csum-partial.o := -funroll-loops
obj-y := csum-partial.o csum-copy.o csum-wrappers.o delay.o \
lib-y := csum-partial.o csum-copy.o csum-wrappers.o delay.o \
usercopy.o getuser.o putuser.o \
thunk.o io.o clear_page.o copy_page.o bitstr.o
obj-y += memcpy.o memmove.o memset.o copy_user.o
lib-y += memcpy.o memmove.o memset.o copy_user.o
obj-$(CONFIG_IO_DEBUG) += iodebug.o
obj-$(CONFIG_HAVE_DEC_LOCK) += dec_and_lock.o
lib-$(CONFIG_IO_DEBUG) += iodebug.o
lib-$(CONFIG_HAVE_DEC_LOCK) += dec_and_lock.o
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment