diff options
author | Masahiro Yamada <yamada.m@jp.panasonic.com> | 2013-11-28 16:29:23 +0900 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2013-12-13 09:18:45 -0500 |
commit | dd88ab325cfcc7f803afd40600571b3f9c79319c (patch) | |
tree | a5c326330eec571614f1104badcfc41dcbd83661 | |
parent | 392ba5256ab9bf017a9b7320ef0cee98862c908d (diff) |
Makefile: Move some scripts imported from Linux
We have some scripts imported from Linux Kernel:
setlocalversion, checkstack.pl, checkpatch.pl, 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 binutils-version.sh and dtc-version.sh
do not originate in Linux Kernel, but they should
be moved by analogy to gcc-version.sh.
Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
-rw-r--r-- | Makefile | 4 | ||||
-rw-r--r-- | config.mk | 6 | ||||
-rw-r--r--[-rwxr-xr-x] | scripts/binutils-version.sh (renamed from tools/binutils-version.sh) | 0 | ||||
-rwxr-xr-x | scripts/checkpatch.pl (renamed from tools/checkpatch.pl) | 0 | ||||
-rwxr-xr-x | scripts/checkstack.pl (renamed from tools/checkstack.pl) | 0 | ||||
-rwxr-xr-x | scripts/cleanpatch (renamed from tools/cleanpatch) | 0 | ||||
-rw-r--r--[-rwxr-xr-x] | scripts/dtc-version.sh (renamed from tools/dtc-version.sh) | 0 | ||||
-rw-r--r--[-rwxr-xr-x] | scripts/gcc-version.sh (renamed from tools/gcc-version.sh) | 0 | ||||
-rwxr-xr-x | scripts/setlocalversion (renamed from tools/setlocalversion) | 0 |
9 files changed, 5 insertions, 5 deletions
@@ -583,7 +583,7 @@ FINDFLAGS := -L checkstack: $(CROSS_COMPILE)objdump -d $(obj)u-boot \ `$(FIND) $(obj) -name u-boot-spl -print` | \ - perl $(src)tools/checkstack.pl $(ARCH) + perl $(src)scripts/checkstack.pl $(ARCH) tags ctags: ctags -w -o $(obj)ctags `$(FIND) $(FINDFLAGS) $(TAG_SUBDIRS) \ @@ -709,7 +709,7 @@ checkarmreloc: $(obj)u-boot $(VERSION_FILE): @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/gcc-version.sh $(CC)) -binutils-version = $(shell $(SHELL) $(SRCTREE)/tools/binutils-version.sh $(AS)) -dtc-version = $(shell $(SHELL) $(SRCTREE)/tools/dtc-version.sh $(DTC)) +cc-version = $(shell $(SHELL) $(SRCTREE)/scripts/gcc-version.sh $(CC)) +binutils-version = $(shell $(SHELL) $(SRCTREE)/scripts/binutils-version.sh $(AS)) +dtc-version = $(shell $(SHELL) $(SRCTREE)/scripts/dtc-version.sh $(DTC)) # # Include the make variables (CC, etc...) diff --git a/tools/binutils-version.sh b/scripts/binutils-version.sh index d4d9eb4361..d4d9eb4361 100755..100644 --- a/tools/binutils-version.sh +++ b/scripts/binutils-version.sh diff --git a/tools/checkpatch.pl b/scripts/checkpatch.pl index 88c5bc7735..88c5bc7735 100755 --- a/tools/checkpatch.pl +++ b/scripts/checkpatch.pl diff --git a/tools/checkstack.pl b/scripts/checkstack.pl index c1cdc0a92a..c1cdc0a92a 100755 --- a/tools/checkstack.pl +++ b/scripts/checkstack.pl diff --git a/tools/cleanpatch b/scripts/cleanpatch index 9680d03ad2..9680d03ad2 100755 --- a/tools/cleanpatch +++ b/scripts/cleanpatch diff --git a/tools/dtc-version.sh b/scripts/dtc-version.sh index e8c94d390b..e8c94d390b 100755..100644 --- a/tools/dtc-version.sh +++ b/scripts/dtc-version.sh diff --git a/tools/gcc-version.sh b/scripts/gcc-version.sh index debecb5561..debecb5561 100755..100644 --- a/tools/gcc-version.sh +++ b/scripts/gcc-version.sh diff --git a/tools/setlocalversion b/scripts/setlocalversion index f551b4c4f4..f551b4c4f4 100755 --- a/tools/setlocalversion +++ b/scripts/setlocalversion |