Browse Source

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>
master
Masahiro Yamada 7 years ago
committed by Tom Rini
parent
commit
dd88ab325c
9 changed files with 5 additions and 5 deletions
  1. +2
    -2
      Makefile
  2. +3
    -3
      config.mk
  3. +0
    -0
     
  4. +0
    -0
      scripts/checkpatch.pl
  5. +0
    -0
      scripts/checkstack.pl
  6. +0
    -0
      scripts/cleanpatch
  7. +0
    -0
     
  8. +0
    -0
     
  9. +0
    -0
      scripts/setlocalversion

+ 2
- 2
Makefile View File

@@ -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' \


+ 3
- 3
config.mk View File

@@ -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...)


+ 0
- 0
View File


tools/checkpatch.pl → scripts/checkpatch.pl View File


tools/checkstack.pl → scripts/checkstack.pl View File


tools/cleanpatch → scripts/cleanpatch View File


+ 0
- 0
View File


+ 0
- 0
View File


tools/setlocalversion → scripts/setlocalversion View File


Loading…
Cancel
Save