Commit dd88ab32 authored by Masahiro Yamada's avatar Masahiro Yamada Committed by Tom Rini

Makefile: Move some scripts imported from Linux

We have some scripts imported from Linux Kernel:
setlocalversion,,, cleanpatch

They are located under tools/ directory in U-Boot now.
But they were originally located under scripts/ directory
in Linux Kernel.

This commit moves them to the original location.

It is true that and
do not originate in Linux Kernel, but they should
be moved by analogy to
Signed-off-by: default avatarMasahiro Yamada <>
parent 392ba525
......@@ -583,7 +583,7 @@ FINDFLAGS := -L
$(CROSS_COMPILE)objdump -d $(obj)u-boot \
`$(FIND) $(obj) -name u-boot-spl -print` | \
perl $(src)tools/ $(ARCH)
perl $(src)scripts/ $(ARCH)
tags ctags:
ctags -w -o $(obj)ctags `$(FIND) $(FINDFLAGS) $(TAG_SUBDIRS) \
......@@ -709,7 +709,7 @@ checkarmreloc: $(obj)u-boot
@mkdir -p $(dir $(VERSION_FILE))
@( localvers='$(shell $(TOPDIR)/tools/setlocalversion $(TOPDIR))' ; \
@( localvers='$(shell $(TOPDIR)/scripts/setlocalversion $(TOPDIR))' ; \
printf '#define PLAIN_VERSION "%s%s"\n' \
"$(U_BOOT_VERSION)" "$${localvers}" ; \
printf '#define U_BOOT_VERSION "U-Boot %s%s"\n' \
......@@ -125,9 +125,9 @@ endif
# cc-version
# Usage gcc-ver := $(call cc-version)
cc-version = $(shell $(SHELL) $(SRCTREE)/tools/ $(CC))
binutils-version = $(shell $(SHELL) $(SRCTREE)/tools/ $(AS))
dtc-version = $(shell $(SHELL) $(SRCTREE)/tools/ $(DTC))
cc-version = $(shell $(SHELL) $(SRCTREE)/scripts/ $(CC))
binutils-version = $(shell $(SHELL) $(SRCTREE)/scripts/ $(AS))
dtc-version = $(shell $(SHELL) $(SRCTREE)/scripts/ $(DTC))
# Include the make variables (CC, etc...)
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment