mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 1/2] Fix Kconfig coding style from spaces to tab
@ 2024-08-01 13:47 Anand Moon
  2024-08-01 13:47 ` [PATCH 2/2] Fix Makefile " Anand Moon
  2024-08-02  5:49 ` [PATCH 1/2] Fix Kconfig " Sascha Hauer
  0 siblings, 2 replies; 3+ messages in thread
From: Anand Moon @ 2024-08-01 13:47 UTC (permalink / raw)
  To: Barebox; +Cc: Anand Moon

Adjust indentation from spaces to tab (+optional two spaces) as in
coding style with command like:
	$ sed -e 's/^        /\t/' -i */Kconfig

Signed-off-by: Anand Moon <linux.amoon@gmail.com>
---
 arch/Kconfig     |  2 +-
 commands/Kconfig | 10 +++++-----
 lib/Kconfig      | 16 ++++++++--------
 3 files changed, 14 insertions(+), 14 deletions(-)

diff --git a/arch/Kconfig b/arch/Kconfig
index 2212b89288..ad47dbf78d 100644
--- a/arch/Kconfig
+++ b/arch/Kconfig
@@ -17,4 +17,4 @@ config ARCH_HAS_CTRLC
 # by default.
 #
 config ARCH_DMA_DEFAULT_COHERENT
-        bool
+	bool
diff --git a/commands/Kconfig b/commands/Kconfig
index 5b512f1bba..b72344f021 100644
--- a/commands/Kconfig
+++ b/commands/Kconfig
@@ -97,10 +97,10 @@ config CMD_DEVLOOKUP
 
 	  devlookup [-v VAR] /dev/DEVICE [parameter]
 
-          Detects the device behind a device file and outputs it,
-          unless a second argument is given. In that case the device
-          parameter with that name is looked up. Specifying -v VARIABLE
-          will write output to VARIABLE instead of printing it.
+	  Detects the device behind a device file and outputs it,
+	  unless a second argument is given. In that case the device
+	  parameter with that name is looked up. Specifying -v VARIABLE
+	  will write output to VARIABLE instead of printing it.
 
 config CMD_DEVUNBIND
 	tristate
@@ -2331,7 +2331,7 @@ config CMD_OF_PROPERTY
 
 	  Valid formats for values:
 	  <0x00112233 4 05> - an array of cells. cells not beginning with a digit are
-                    interpreted as node paths and converted to phandles
+	            interpreted as node paths and converted to phandles
 	  [00 11 22 .. nn]  - byte stream
 	  If the value does not start with '<' or '[' it is interpreted as string
 
diff --git a/lib/Kconfig b/lib/Kconfig
index df9ba6ccc9..44133a54f3 100644
--- a/lib/Kconfig
+++ b/lib/Kconfig
@@ -45,22 +45,22 @@ config XZ_DECOMPRESS
 	select XZ_DEC_ARM64
 
 config XZ_DEC_X86
-        bool
+	bool
 
 config XZ_DEC_POWERPC
-        bool
+	bool
 
 config XZ_DEC_IA64
-        bool
+	bool
 
 config XZ_DEC_ARM
-        bool
+	bool
 
 config XZ_DEC_ARMTHUMB
-        bool
+	bool
 
 config XZ_DEC_SPARC
-        bool
+	bool
 
 config XZ_DEC_ARM64
 	bool
@@ -152,7 +152,7 @@ config CRC_CCITT
 	  functions require M here.
 
 config CRC8
-        bool "CRC8 function"
+	bool "CRC8 function"
 	help
 	  This option provides CRC8 function. Drivers may select this
 	  when they need to do cyclic redundancy check according CRC8
@@ -204,7 +204,7 @@ config GENERIC_LIB_MULDI3
 	bool
 
 config NLS
-        bool "Native language support"
+	bool "Native language support"
 
 config BLOBGEN
 	select BASE64
-- 
2.44.0




^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH 2/2] Fix Makefile coding style from spaces to tab
  2024-08-01 13:47 [PATCH 1/2] Fix Kconfig coding style from spaces to tab Anand Moon
@ 2024-08-01 13:47 ` Anand Moon
  2024-08-02  5:49 ` [PATCH 1/2] Fix Kconfig " Sascha Hauer
  1 sibling, 0 replies; 3+ messages in thread
From: Anand Moon @ 2024-08-01 13:47 UTC (permalink / raw)
  To: Barebox; +Cc: Anand Moon

Adjust indentation from spaces to tab (+optional two spaces) as in
coding style with command like:
	$ sed -e 's/^        /\t/' -i */Makefile

Signed-off-by: Anand Moon <linux.amoon@gmail.com>
---
 dts/Makefile      | 30 +++++++++++++++---------------
 firmware/Makefile |  4 ++--
 images/Makefile   |  2 +-
 lib/Makefile      |  2 +-
 4 files changed, 19 insertions(+), 19 deletions(-)

diff --git a/dts/Makefile b/dts/Makefile
index fb51acef7c..8695a87333 100644
--- a/dts/Makefile
+++ b/dts/Makefile
@@ -5,18 +5,18 @@ CPP ?= cpp
 # Disable noisy checks by default
 ifeq ($(findstring 1,$(DTC_VERBOSE)),)
 DTC_FLAGS += -Wno-unit_address_vs_reg \
-        -Wno-unit_address_format \
-        -Wno-avoid_unnecessary_addr_size \
-        -Wno-alias_paths \
-        -Wno-graph_child_address \
-        -Wno-simple_bus_reg \
-        -Wno-unique_unit_address \
-        -Wno-pci_device_reg
+	-Wno-unit_address_format \
+	-Wno-avoid_unnecessary_addr_size \
+	-Wno-alias_paths \
+	-Wno-graph_child_address \
+	-Wno-simple_bus_reg \
+	-Wno-unique_unit_address \
+	-Wno-pci_device_reg
 endif
 
 ifneq ($(findstring 2,$(DTC_VERBOSE)),)
 DTC_FLAGS += -Wnode_name_chars_strict \
-        -Wproperty_name_chars_strict
+	-Wproperty_name_chars_strict
 endif
 
 MAKEFLAGS += -rR --no-print-directory
@@ -130,15 +130,15 @@ quiet_cmd_clean    = CLEAN   $(obj)
 dtc-tmp = $(subst $(comma),_,$(dot-target).dts.tmp)
 
 dtc_cpp_flags  = -Wp,-MD,$(depfile).pre.tmp -nostdinc		\
-                 -Iinclude -I$(src) -Isrc -Itestcase-data	\
-                 -undef -D__DTS__
+	         -Iinclude -I$(src) -Isrc -Itestcase-data	\
+	         -undef -D__DTS__
 
 quiet_cmd_dtc = DTC     $@
 cmd_dtc = $(CPP) $(dtc_cpp_flags) -x assembler-with-cpp -o $(dtc-tmp) $< ; \
-        $(DTC) -O dtb -o $@ -b 0 \
-                -i $(src) $(DTC_FLAGS) \
-                -d $(depfile).dtc.tmp $(dtc-tmp) ; \
-        cat $(depfile).pre.tmp $(depfile).dtc.tmp > $(depfile)
+	$(DTC) -O dtb -o $@ -b 0 \
+	        -i $(src) $(DTC_FLAGS) \
+	        -d $(depfile).dtc.tmp $(dtc-tmp) ; \
+	cat $(depfile).pre.tmp $(depfile).dtc.tmp > $(depfile)
 
 $(obj)/%.dtb: $(src)/%.dts FORCE
 	$(call if_changed_dep,dtc)
@@ -148,7 +148,7 @@ all_arch: $(ARCH_DTB)
 	@:
 
 RCS_FIND_IGNORE := \( -name SCCS -o -name BitKeeper -o -name .svn -o -name CVS \
-                   -o -name .pc -o -name .hg -o -name .git \) -prune -o
+	           -o -name .pc -o -name .hg -o -name .git \) -prune -o
 
 PHONY += clean_arch
 clean_arch: __clean-files = $(ARCH_DTB)
diff --git a/firmware/Makefile b/firmware/Makefile
index d5e4cee859..7265c55c42 100644
--- a/firmware/Makefile
+++ b/firmware/Makefile
@@ -125,9 +125,9 @@ $(patsubst %.gen.o,$(obj)/%.gen.o, $(obj-pbl-y)): $(obj)/%.gen.o: $(fwdep-requir
 pbl-y += $(pbl-fwext-y)
 
 targets := $(patsubst $(obj)/%,%, \
-                                $(shell find $(obj) -name \*.gen.S 2>/dev/null))
+	                        $(shell find $(obj) -name \*.gen.S 2>/dev/null))
 targets += $(patsubst $(obj)/%,%, \
-                                $(shell find $(obj) -name \*.extgen.S 2>/dev/null))
+	                        $(shell find $(obj) -name \*.extgen.S 2>/dev/null))
 
 # just to build a built-in.o. Otherwise compilation fails when no
 # firmware is built.
diff --git a/images/Makefile b/images/Makefile
index c0105609ee..9007911278 100644
--- a/images/Makefile
+++ b/images/Makefile
@@ -236,5 +236,5 @@ clean-files := *.pbl *.pblb *.elf *.map start_*.imximg *.img barebox.z start_*.k
 	start_*.kwbuartimg *.socfpgaimg *.mlo *.t20img *.t20img.cfg *.t30img \
 	*.t30img.cfg *.t124img *.t124img.cfg *.mlospi *.mlo *.mxsbs *.mxssd *.rkimg \
 	start_*.simximg start_*.usimximg start_*.pimximg start_*.psimximg *.zynqimg \
-        *.image *.swapped *.missing-firmware
+	*.image *.swapped *.missing-firmware
 clean-files += pbl.lds
diff --git a/lib/Makefile b/lib/Makefile
index 0dde52527f..b3d024035c 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -101,7 +101,7 @@ CFLAGS_ubsan.o := -fno-stack-protector
 libfdt_files = fdt.o fdt_ro.o fdt_wip.o fdt_rw.o fdt_sw.o fdt_strerror.o \
 	                      fdt_empty_tree.o
 $(foreach file, $(libfdt_files), \
-        $(eval CFLAGS_$(file) = -I $(srctree)/scripts/dtc/libfdt) \
+	$(eval CFLAGS_$(file) = -I $(srctree)/scripts/dtc/libfdt) \
 	$(eval CFLAGS_$(file:%.o=%.pbl.o) = -I $(srctree)/scripts/dtc/libfdt))
 
 obj-pbl-$(CONFIG_LIBFDT) += $(libfdt_files)
-- 
2.44.0




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH 1/2] Fix Kconfig coding style from spaces to tab
  2024-08-01 13:47 [PATCH 1/2] Fix Kconfig coding style from spaces to tab Anand Moon
  2024-08-01 13:47 ` [PATCH 2/2] Fix Makefile " Anand Moon
@ 2024-08-02  5:49 ` Sascha Hauer
  1 sibling, 0 replies; 3+ messages in thread
From: Sascha Hauer @ 2024-08-02  5:49 UTC (permalink / raw)
  To: Barebox, Anand Moon


On Thu, 01 Aug 2024 19:17:06 +0530, Anand Moon wrote:
> Adjust indentation from spaces to tab (+optional two spaces) as in
> coding style with command like:
> 	$ sed -e 's/^        /\t/' -i */Kconfig
> 
> 

Applied, thanks!

[1/2] Fix Kconfig coding style from spaces to tab
      https://git.pengutronix.de/cgit/barebox/commit/?id=c1d7a1cca0e5 (link may not be stable)
[2/2] Fix Makefile coding style from spaces to tab
      https://git.pengutronix.de/cgit/barebox/commit/?id=e58395c76b2e (link may not be stable)

Best regards,
-- 
Sascha Hauer <s.hauer@pengutronix.de>




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-08-02  5:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-08-01 13:47 [PATCH 1/2] Fix Kconfig coding style from spaces to tab Anand Moon
2024-08-01 13:47 ` [PATCH 2/2] Fix Makefile " Anand Moon
2024-08-02  5:49 ` [PATCH 1/2] Fix Kconfig " Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox