diff --git a/payloads/libpayload/Makefile.inc b/payloads/libpayload/Makefile.inc index 908d0e7637..4c434a3d25 100644 --- a/payloads/libpayload/Makefile.inc +++ b/payloads/libpayload/Makefile.inc @@ -97,7 +97,7 @@ install: real-target for lib in $(library-targets); do \ install -m 644 $$lib $(DESTDIR)/libpayload/lib/; \ done - install -m 644 lib/libpayload.ldscript $(DESTDIR)/libpayload/lib/ + install -m 644 arch/$(ARCHDIR-y)/libpayload.ldscript $(DESTDIR)/libpayload/lib/ install -m 755 -d $(DESTDIR)/libpayload/lib/$(ARCHDIR-y) install -m 644 $(obj)/head.o $(DESTDIR)/libpayload/lib/$(ARCHDIR-y) printf " INSTALL $(DESTDIR)/libpayload/include\n" diff --git a/payloads/libpayload/lib/libpayload.ldscript b/payloads/libpayload/arch/x86/libpayload.ldscript similarity index 100% rename from payloads/libpayload/lib/libpayload.ldscript rename to payloads/libpayload/arch/x86/libpayload.ldscript