[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [RFC XEN PATCH 14/23] convert common/libfdt to kbuild makefile


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Anthony PERARD <anthony.perard@xxxxxxxxxx>
  • Date: Wed, 23 Oct 2019 17:48:28 +0100
  • Authentication-results: esa5.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none; spf=None smtp.pra=anthony.perard@xxxxxxxxxx; spf=Pass smtp.mailfrom=anthony.perard@xxxxxxxxxx; spf=None smtp.helo=postmaster@xxxxxxxxxxxxxxx
  • Cc: Anthony PERARD <anthony.perard@xxxxxxxxxx>
  • Delivery-date: Wed, 23 Oct 2019 17:10:47 +0000
  • Ironport-sdr: vYPmbaGETsa2/vNDU6CMB7KIkioEIKqz7CvhUlnsU8NCakD2pTUFQAv3BEwOO+0IGTPKFHjRiT IfdK3+htnDHndDt4zSINwEJSgkYgPuUx4aBUcFYVYPZQS3xFO17WOuOf/PJyVnY467kdZirp5z /B3teKp7Uy4/N8eZwPcKIvfdZ+CplGJvtFDB3SOfFNvqmfZa5lq9Rz75/D7bvYNl8x5ht5BS/l nzrZPDyb7CQA1TRntSE15YsFOy5qttN3m4n0nrHHeym1B9dHhUevmHzEdwo5FeH4hxFgrEh9Y8 A7g=
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

UNTESTED
---
 xen/common/libfdt/Makefile | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/xen/common/libfdt/Makefile b/xen/common/libfdt/Makefile
index 9ea5c696d52a..a233d82b15ee 100644
--- a/xen/common/libfdt/Makefile
+++ b/xen/common/libfdt/Makefile
@@ -1,14 +1,16 @@
-include Makefile.libfdt
+include $(srctree)/$(src)/Makefile.libfdt
 
 SECTIONS := text data $(SPECIAL_DATA_SECTIONS)
 
 obj-y += libfdt.o
 nocov-y += libfdt.o
 
-ccflags-y += -I$(BASEDIR)/include/xen/libfdt/
+ccflags-y += -I$(srctree)/include/xen/libfdt/
+ldflags-y += -r
+OBJCOPYFLAGS += $(foreach s,$(SECTIONS),--rename-section .$(s)=.init.$(s))
 
-libfdt.o: libfdt-temp.o Makefile
-       $(OBJCOPY) $(foreach s,$(SECTIONS),--rename-section .$(s)=.init.$(s)) 
$< $@
+$(obj)/libfdt.o: $(obj)/libfdt-temp.o FORCE
+       $(call if_changed,objcopy)
 
-libfdt-temp.o: $(LIBFDT_OBJS)
-       $(LD) $(LDFLAGS) -r -o $@ $^
+$(obj)/libfdt-temp.o: $(addprefix $(obj)/,$(LIBFDT_OBJS)) FORCE
+       $(call if_changed,ld)
-- 
Anthony PERARD

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.