Skip to content

Commit dd88ab3

Browse files
masahir0ytrini
authored andcommitted
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>
1 parent 392ba52 commit dd88ab3

9 files changed

Lines changed: 5 additions & 5 deletions

File tree

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,7 @@ FINDFLAGS := -L
583583
checkstack:
584584
$(CROSS_COMPILE)objdump -d $(obj)u-boot \
585585
`$(FIND) $(obj) -name u-boot-spl -print` | \
586-
perl $(src)tools/checkstack.pl $(ARCH)
586+
perl $(src)scripts/checkstack.pl $(ARCH)
587587

588588
tags ctags:
589589
ctags -w -o $(obj)ctags `$(FIND) $(FINDFLAGS) $(TAG_SUBDIRS) \
@@ -709,7 +709,7 @@ checkarmreloc: $(obj)u-boot
709709

710710
$(VERSION_FILE):
711711
@mkdir -p $(dir $(VERSION_FILE))
712-
@( localvers='$(shell $(TOPDIR)/tools/setlocalversion $(TOPDIR))' ; \
712+
@( localvers='$(shell $(TOPDIR)/scripts/setlocalversion $(TOPDIR))' ; \
713713
printf '#define PLAIN_VERSION "%s%s"\n' \
714714
"$(U_BOOT_VERSION)" "$${localvers}" ; \
715715
printf '#define U_BOOT_VERSION "U-Boot %s%s"\n' \

config.mk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,9 @@ endif
125125

126126
# cc-version
127127
# Usage gcc-ver := $(call cc-version)
128-
cc-version = $(shell $(SHELL) $(SRCTREE)/tools/gcc-version.sh $(CC))
129-
binutils-version = $(shell $(SHELL) $(SRCTREE)/tools/binutils-version.sh $(AS))
130-
dtc-version = $(shell $(SHELL) $(SRCTREE)/tools/dtc-version.sh $(DTC))
128+
cc-version = $(shell $(SHELL) $(SRCTREE)/scripts/gcc-version.sh $(CC))
129+
binutils-version = $(shell $(SHELL) $(SRCTREE)/scripts/binutils-version.sh $(AS))
130+
dtc-version = $(shell $(SHELL) $(SRCTREE)/scripts/dtc-version.sh $(DTC))
131131

132132
#
133133
# Include the make variables (CC, etc...)
File renamed without changes.

0 commit comments

Comments
 (0)