[ACPI] drivers/acpi/video.c: fix error path NULL pointer dereference
[sfrench/cifs-2.6.git] / arch / um / scripts / Makefile.unmap
1 clean-files += unmap_tmp.o unmap_fin.o unmap.o
2
3 ifdef CONFIG_MODE_TT
4
5 #Always build unmap_fin.o
6 extra-y += unmap_fin.o
7 #Do dependency tracking for unmap.o (it will be always built, but won't get the tracking unless we use this).
8 targets += unmap.o
9
10 #XXX: partially copied from arch/um/scripts/Makefile.rules
11 $(obj)/unmap.o: _c_flags = $(call unprofile,$(CFLAGS))
12
13 quiet_cmd_wrapld = LD      $@
14 define cmd_wrapld
15         $(LD) $(LDFLAGS) -r -o $(obj)/unmap_tmp.o $< ; \
16         $(OBJCOPY) $(UML_OBJCOPYFLAGS) $(obj)/unmap_tmp.o $@ -G switcheroo
17 endef
18
19 $(obj)/unmap_fin.o : $(obj)/unmap.o FORCE
20         $(call if_changed,wrapld)
21
22 endif