|
@@ -743,6 +743,13 @@ tools: $(VERSION_FILE) $(TIMESTAMP_FILE)
|
|
$(MAKE) -C $@ all
|
|
$(MAKE) -C $@ all
|
|
endif # config.mk
|
|
endif # config.mk
|
|
|
|
|
|
|
|
+# ARM relocations should all be R_ARM_RELATIVE.
|
|
|
|
+checkarmreloc: $(obj)u-boot
|
|
|
|
+ @if test "R_ARM_RELATIVE" != \
|
|
|
|
+ "`readelf -r $< | cut -d ' ' -f 4 | grep R_ARM | sort -u`"; \
|
|
|
|
+ then echo "$< contains relocations other than \
|
|
|
|
+ R_ARM_RELATIVE"; false; fi
|
|
|
|
+
|
|
$(VERSION_FILE):
|
|
$(VERSION_FILE):
|
|
@mkdir -p $(dir $(VERSION_FILE))
|
|
@mkdir -p $(dir $(VERSION_FILE))
|
|
@( localvers='$(shell $(TOPDIR)/tools/setlocalversion $(TOPDIR))' ; \
|
|
@( localvers='$(shell $(TOPDIR)/tools/setlocalversion $(TOPDIR))' ; \
|