]> Pileus Git - ~andy/linux/blobdiff - arch/um/Makefile
Merge branch 'upstream' into bugfix-video
[~andy/linux] / arch / um / Makefile
index 55c0661e2b5dbcba77a097522e43f109922bb577..097091059aaaee32883d4a302457fcb4a630854f 100644 (file)
@@ -121,15 +121,8 @@ LINK_WRAPS = -Wl,--wrap,malloc -Wl,--wrap,free -Wl,--wrap,calloc
 
 LD_FLAGS_CMDLINE = $(foreach opt,$(LDFLAGS),-Wl,$(opt))
 
-CFLAGS_vmlinux := $(LINK-y) $(LINK_WRAPS) $(LD_FLAGS_CMDLINE)
-define cmd_vmlinux__
-       $(CC) $(CFLAGS_vmlinux) -o $@ \
-       -Wl,-T,$(vmlinux-lds) $(vmlinux-init) \
-       -Wl,--start-group $(vmlinux-main) -Wl,--end-group \
-       -lutil \
-       $(filter-out $(vmlinux-lds) $(vmlinux-init) $(vmlinux-main) vmlinux.o \
-       FORCE ,$^) ; rm -f linux
-endef
+# Used by link-vmlinux.sh which has special support for um link
+export CFLAGS_vmlinux := $(LINK-y) $(LINK_WRAPS) $(LD_FLAGS_CMDLINE)
 
 # When cleaning we don't include .config, so we don't include
 # TT or skas makefiles and don't clean skas_ptregs.h.