All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 000/102] Standardize/beautify genimage .cfg files for all boards
@ 2021-11-07  1:58 Giulio Benetti
  2021-11-07  1:58 ` [Buildroot] [PATCH 001/102] board/aarch64-efi/genimage.cfg: beautify file Giulio Benetti
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Giulio Benetti @ 2021-11-07  1:58 UTC (permalink / raw)
  To: buildroot
  Cc: Louis Aussedat, Theo Debrouwere, Nicholas Sielicki, Edgar Bonet,
	Alexey Brodkin, Mike Harmony, Marcin Niestroj, Michel Stempin,
	Thomas Petazzoni, Dagg Stompler, Biagio Montaruli,
	Sergey Matyukevich, Jörg Krause, Gwenhael Goavec-Merou,
	Vincent Stehlé,
	Jan Kraval, Ludovic Desroches, Peter Seiderer,
	Clément Péron, Ezequiel Garcia, Jagan Teki,
	Filip Skoneczny, Sergio Prado, David Lechner, Davide Viti,
	Nikolay Dimitrov, Michał Łyszczek, Suniel Mahesh,
	Yann E . MORIN, ARC Maintainers, Giulio Benetti, Pierre Crokaert,
	Julien Grossholtz, Gerome Burlats, Christophe Priouzeau,
	Lothar Felten, Luca Ceresoli, Romain Naour, Martin Bark

This patchset aims to set a standard for all genimage .cfg files in
Buildroot since at the moment various formats are used.
First of all I've changed every double space into tab, and in general tab
becomes the separator in place of space that more than sometimes is used
mixed with tabs.
There are some space, newline left, no newlines after nodes while
newlines after other.
All the offsets and sizes are specified in a mixed way of bytes number,
K, M, G, hexadecimal.
So basically these file has never had a standard. Even if a real standard
is not really defined I ask you to accept this long patchset to improve
consistency and to ease the readibility of offsets and sizes.

I've created a patch per file instead of "topic" like "missing space",
"convert from space to tab" etc. because it was a big mix of everything
in more than one file.

I ask, can I add a section in Documentation where to explain how to write
a "standard" genimage .cfg file? That way there is a guideline.

Best regards

Giulio Benetti (102):
  board/aarch64-efi/genimage.cfg: beautify file
  board/acmesystems/acqua-a5/genimage.cfg: beautify file
  board/acmesystems/aria-g25/genimage.cfg: beautify file
  board/acmesystems/arietta-g25/genimage.cfg: beautify file
  board/altera/socrates_cyclone5/genimage.cfg: beautify file
  board/amarula/a64-relic/genimage.cfg: beautify file
  board/atmel/at91sam9x5ek_mmc/genimage.cfg: beautify file
  board/atmel/sama5d27_som1_ek_mmc/genimage.cfg: beautify file
  board/atmel/sama5d27_wlsom1_ek_mmc/genimage.cfg: beautify file
  board/atmel/sama5d2_xplained_mmc/genimage.cfg: beautify file
  board/atmel/sama5d3_xplained_mmc/genimage.cfg: beautify file
  board/atmel/sama5d4_xplained_mmc/genimage.cfg: beautify file
  board/bananapi/bananapi-m1/genimage.cfg: beautify file
  board/bananapi/bananapi-m2-ultra/genimage.cfg: beautify file
  board/bananapi/bananapi-m2-zero/genimage.cfg: beautify file
  board/bananapi/bananapi-m64/genimage.cfg: beautify file
  board/beagleboardx15/genimage.cfg: beautify file
  board/beaglebone/genimage.cfg: beautify file
  board/beagleboneai/genimage.cfg: beautify file
  board/beaglev/genimage.cfg: beautify file
  board/beelink/gs1/genimage.cfg: beautify file
  board/ci20/genimage.cfg: beautify file
  board/cubietech/cubieboard2/genimage.cfg: beautify file
  board/embest/riotboard/genimage.cfg: beautify file
  board/engicam/geam6ul/genimage.cfg: beautify file
  board/engicam/icorem6/genimage.cfg: beautify file
  board/engicam/icorem6_rqs/genimage.cfg: beautify file
  board/engicam/isiot/genimage.cfg: beautify file
  board/friendlyarm/nanopc-t4/genimage.cfg: beautify file
  board/friendlyarm/nanopi-a64/genimage.cfg: beautify file
  board/friendlyarm/nanopi-m1-plus/genimage.cfg: beautify file
  board/friendlyarm/nanopi-m1/genimage.cfg: beautify file
  board/friendlyarm/nanopi-m4/genimage.cfg: beautify file
  board/friendlyarm/nanopi-neo-plus2/genimage.cfg: beautify file
  board/friendlyarm/nanopi-neo/genimage.cfg: beautify file
  board/friendlyarm/nanopi-neo2/genimage.cfg: beautify file
  board/friendlyarm/nanopi-r1/genimage.cfg: beautify file
  board/grinn/chiliboard/genimage.cfg: beautify file
  board/grinn/liteboard/genimage.cfg: beautify file
  board/hardkernel/odroidc2/genimage.cfg: beautify file
  board/hardkernel/odroidxu4/genimage.cfg: beautify file
  board/intel/galileo/genimage.cfg: beautify file
  board/lego/ev3/genimage.cfg: beautify file
  board/lemaker/bananapro/genimage.cfg: beautify file
  board/licheepi/genimage.cfg: beautify file
  board/linksprite/pcduino/genimage.cfg: beautify file
  board/microchip/sam9x60ek_mmc/genimage.cfg: beautify file
  board/microchip/sama5d2_icp/genimage.cfg: beautify file
  board/minnowboard/genimage.cfg: beautify file
  board/nexbox/a95x/genimage.cfg: beautify file
  board/olimex/a13_olinuxino/genimage.cfg: beautify file
  board/olimex/a20_olinuxino/genimage.cfg: beautify file
  board/olimex/a33_olinuxino/genimage.cfg: beautify file
  board/olimex/a64_olinuxino/genimage.cfg: beautify file
  board/orangepi/orangepi-lite/genimage.cfg: beautify file
  board/orangepi/orangepi-lite2/genimage.cfg: beautify file
  board/orangepi/orangepi-one-plus/genimage.cfg: beautify file
  board/orangepi/orangepi-one/genimage.cfg: beautify file
  board/orangepi/orangepi-pc-plus/genimage.cfg: beautify file
  board/orangepi/orangepi-pc/genimage.cfg: beautify file
  board/orangepi/orangepi-pc2/genimage.cfg: beautify file
  board/orangepi/orangepi-plus/genimage.cfg: beautify file
  board/orangepi/orangepi-prime/genimage.cfg: beautify file
  board/orangepi/orangepi-r1/genimage.cfg: beautify file
  board/orangepi/orangepi-rk3399/genimage.cfg: beautify file
  board/orangepi/orangepi-win/genimage.cfg: beautify file
  board/orangepi/orangepi-zero-plus/genimage.cfg: beautify file
  board/orangepi/orangepi-zero-plus2/genimage.cfg: beautify file
  board/orangepi/orangepi-zero/genimage.cfg: beautify file
  board/pandaboard/genimage.cfg: beautify file
  board/pc/genimage-bios.cfg: beautify file
  board/pc/genimage-efi.cfg: beautify file
  board/pine64/pine64/genimage.cfg: beautify file
  board/pine64/rock64/genimage.cfg: beautify file
  board/pine64/rockpro64/genimage.cfg: beautify file
  board/pine64/sopine/genimage.cfg: beautify file
  board/qemu/aarch64-sbsa/genimage.cfg: beautify file
  board/radxa/rockpi-4/genimage.cfg: beautify file
  board/radxa/rockpi-n10/genimage.cfg: beautify file
  board/radxa/rockpi-n8/genimage.cfg: beautify file
  board/raspberrypi/genimage-raspberrypi.cfg: beautify file
  board/raspberrypi/genimage-raspberrypi0.cfg: beautify file
  board/raspberrypi/genimage-raspberrypi0w.cfg: beautify file
  board/raspberrypi/genimage-raspberrypi2.cfg: beautify file
  board/raspberrypi/genimage-raspberrypi3-64.cfg: beautify file
  board/raspberrypi/genimage-raspberrypi3.cfg: beautify file
  board/raspberrypi/genimage-raspberrypi4-64.cfg: beautify file
  board/raspberrypi/genimage-raspberrypi4.cfg: beautify file
  board/raspberrypi/genimage-raspberrypicm4io-64.cfg: beautify file
  board/raspberrypi/genimage-raspberrypicm4io.cfg: beautify file
  board/roseapplepi/genimage.cfg: beautify file
  board/sinovoip/m1-plus/genimage.cfg: beautify file
  board/sinovoip/m2-plus/genimage.cfg: beautify file
  board/solidrun/macchiatobin/genimage.cfg: beautify file
  board/stmicroelectronics/stm32f469-disco/genimage.cfg: beautify file
  board/synopsys/hsdk/genimage.cfg: beautify file
  board/technologic/ts7680/genimage.cfg: beautify file
  board/terasic/de10nano_cyclone5/genimage.cfg: beautify file
  board/toradex/apalis-imx6/genimage.cfg: beautify file
  board/uevm5432/genimage.cfg: beautify file
  board/zynq/genimage.cfg: beautify file
  board/zynqmp/genimage.cfg: beautify file

 board/aarch64-efi/genimage-efi.cfg            | 45 +++++++-------
 board/acmesystems/acqua-a5/genimage.cfg       |  1 +
 board/acmesystems/aria-g25/genimage.cfg       |  1 +
 board/acmesystems/arietta-g25/genimage.cfg    |  7 ++-
 board/altera/socrates_cyclone5/genimage.cfg   |  5 +-
 board/amarula/a64-relic/genimage.cfg          |  1 +
 board/atmel/at91sam9x5ek_mmc/genimage.cfg     |  1 +
 board/atmel/sama5d27_som1_ek_mmc/genimage.cfg |  1 +
 .../atmel/sama5d27_wlsom1_ek_mmc/genimage.cfg |  1 +
 board/atmel/sama5d2_xplained_mmc/genimage.cfg |  1 +
 board/atmel/sama5d3_xplained_mmc/genimage.cfg |  1 +
 board/atmel/sama5d4_xplained_mmc/genimage.cfg |  1 +
 board/bananapi/bananapi-m1/genimage.cfg       |  5 +-
 board/bananapi/bananapi-m2-ultra/genimage.cfg |  5 +-
 board/bananapi/bananapi-m2-zero/genimage.cfg  |  5 +-
 board/bananapi/bananapi-m64/genimage.cfg      |  5 +-
 board/beagleboardx15/genimage.cfg             |  3 +-
 board/beaglebone/genimage.cfg                 |  3 +-
 board/beagleboneai/genimage.cfg               |  1 +
 board/beaglev/genimage.cfg                    | 18 +++---
 board/beelink/gs1/genimage.cfg                |  5 +-
 board/ci20/genimage.cfg                       | 44 +++++++-------
 board/cubietech/cubieboard2/genimage.cfg      |  5 +-
 board/embest/riotboard/genimage.cfg           | 26 ++++----
 board/engicam/geam6ul/genimage.cfg            |  3 +-
 board/engicam/icorem6/genimage.cfg            |  3 +-
 board/engicam/icorem6_rqs/genimage.cfg        |  3 +-
 board/engicam/isiot/genimage.cfg              |  3 +-
 board/friendlyarm/nanopc-t4/genimage.cfg      | 60 +++++++++----------
 board/friendlyarm/nanopi-a64/genimage.cfg     |  5 +-
 board/friendlyarm/nanopi-m1-plus/genimage.cfg |  5 +-
 board/friendlyarm/nanopi-m1/genimage.cfg      |  5 +-
 board/friendlyarm/nanopi-m4/genimage.cfg      |  2 +-
 .../friendlyarm/nanopi-neo-plus2/genimage.cfg |  5 +-
 board/friendlyarm/nanopi-neo/genimage.cfg     |  5 +-
 board/friendlyarm/nanopi-neo2/genimage.cfg    |  5 +-
 board/friendlyarm/nanopi-r1/genimage.cfg      |  5 +-
 board/grinn/chiliboard/genimage.cfg           | 43 ++++++-------
 board/grinn/liteboard/genimage.cfg            | 59 +++++++++---------
 board/hardkernel/odroidc2/genimage.cfg        |  3 +-
 board/hardkernel/odroidxu4/genimage.cfg       | 17 +++---
 board/intel/galileo/genimage.cfg              |  3 +-
 board/lego/ev3/genimage.cfg                   | 18 ++++--
 board/lemaker/bananapro/genimage.cfg          |  5 +-
 board/licheepi/genimage.cfg                   |  5 +-
 board/linksprite/pcduino/genimage.cfg         |  5 +-
 board/microchip/sam9x60ek_mmc/genimage.cfg    |  1 +
 board/microchip/sama5d2_icp/genimage.cfg      |  1 +
 board/minnowboard/genimage.cfg                |  1 +
 board/nexbox/a95x/genimage.cfg                |  1 +
 board/olimex/a13_olinuxino/genimage.cfg       | 32 +++++-----
 board/olimex/a20_olinuxino/genimage.cfg       |  4 +-
 board/olimex/a33_olinuxino/genimage.cfg       |  4 +-
 board/olimex/a64-olinuxino/genimage.cfg       |  5 +-
 board/orangepi/orangepi-lite/genimage.cfg     |  5 +-
 board/orangepi/orangepi-lite2/genimage.cfg    |  5 +-
 board/orangepi/orangepi-one-plus/genimage.cfg |  5 +-
 board/orangepi/orangepi-one/genimage.cfg      |  5 +-
 board/orangepi/orangepi-pc-plus/genimage.cfg  |  5 +-
 board/orangepi/orangepi-pc/genimage.cfg       |  5 +-
 board/orangepi/orangepi-pc2/genimage.cfg      |  5 +-
 board/orangepi/orangepi-plus/genimage.cfg     |  5 +-
 board/orangepi/orangepi-prime/genimage.cfg    |  5 +-
 board/orangepi/orangepi-r1/genimage.cfg       |  5 +-
 board/orangepi/orangepi-rk3399/genimage.cfg   |  2 +-
 board/orangepi/orangepi-win/genimage.cfg      |  5 +-
 .../orangepi/orangepi-zero-plus/genimage.cfg  |  5 +-
 .../orangepi/orangepi-zero-plus2/genimage.cfg |  5 +-
 board/orangepi/orangepi-zero/genimage.cfg     |  4 +-
 board/pandaboard/genimage.cfg                 |  1 +
 board/pc/genimage-bios.cfg                    | 36 ++++++-----
 board/pc/genimage-efi.cfg                     | 49 +++++++--------
 board/pine64/pine64/genimage.cfg              |  5 +-
 board/pine64/rock64/genimage.cfg              | 36 +++++------
 board/pine64/rockpro64/genimage.cfg           |  2 +-
 board/pine64/sopine/genimage.cfg              |  5 +-
 board/qemu/aarch64-sbsa/genimage.cfg          | 42 ++++++-------
 board/radxa/rockpi-4/genimage.cfg             |  2 +-
 board/radxa/rockpi-n10/genimage.cfg           |  2 +-
 board/radxa/rockpi-n8/genimage.cfg            |  2 +-
 board/raspberrypi/genimage-raspberrypi.cfg    | 51 ++++++++--------
 board/raspberrypi/genimage-raspberrypi0.cfg   | 47 ++++++++-------
 board/raspberrypi/genimage-raspberrypi0w.cfg  | 49 +++++++--------
 board/raspberrypi/genimage-raspberrypi2.cfg   | 47 ++++++++-------
 .../raspberrypi/genimage-raspberrypi3-64.cfg  | 53 ++++++++--------
 board/raspberrypi/genimage-raspberrypi3.cfg   | 53 ++++++++--------
 .../raspberrypi/genimage-raspberrypi4-64.cfg  | 47 ++++++++-------
 board/raspberrypi/genimage-raspberrypi4.cfg   | 47 ++++++++-------
 .../genimage-raspberrypicm4io-64.cfg          | 47 ++++++++-------
 .../raspberrypi/genimage-raspberrypicm4io.cfg | 47 ++++++++-------
 board/roseapplepi/genimage.cfg                | 12 ++--
 board/sinovoip/m1-plus/genimage.cfg           |  5 +-
 board/sinovoip/m2-plus/genimage.cfg           |  5 +-
 board/solidrun/macchiatobin/genimage.cfg      |  4 +-
 .../stm32f469-disco/genimage.cfg              |  4 +-
 board/synopsys/hsdk/genimage.cfg              | 42 ++++++-------
 board/technologic/ts7680/genimage.cfg         |  2 +-
 board/terasic/de10nano_cyclone5/genimage.cfg  |  1 +
 board/toradex/apalis-imx6/genimage.cfg        | 14 ++---
 board/uevm5432/genimage.cfg                   |  1 +
 board/zynq/genimage.cfg                       |  2 +
 board/zynqmp/genimage.cfg                     |  1 +
 102 files changed, 716 insertions(+), 625 deletions(-)

-- 
2.25.1

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

* [Buildroot] [PATCH 001/102] board/aarch64-efi/genimage.cfg: beautify file
  2021-11-07  1:58 [Buildroot] [PATCH 000/102] Standardize/beautify genimage .cfg files for all boards Giulio Benetti
@ 2021-11-07  1:58 ` Giulio Benetti
  2021-11-07  1:58 ` [Buildroot] [PATCH 002/102] board/acmesystems/acqua-a5/genimage.cfg: " Giulio Benetti
  2021-11-08 15:07 ` [Buildroot] [PATCH 000/102] Standardize/beautify genimage .cfg files for all boards Yann E. MORIN
  2 siblings, 0 replies; 9+ messages in thread
From: Giulio Benetti @ 2021-11-07  1:58 UTC (permalink / raw)
  To: buildroot
  Cc: Louis Aussedat, Theo Debrouwere, Nicholas Sielicki, Edgar Bonet,
	Alexey Brodkin, Mike Harmony, Marcin Niestroj, Michel Stempin,
	Thomas Petazzoni, Dagg Stompler, Biagio Montaruli,
	Sergey Matyukevich, Jörg Krause, Gwenhael Goavec-Merou,
	Vincent Stehlé,
	Jan Kraval, Ludovic Desroches, Peter Seiderer,
	Clément Péron, Ezequiel Garcia, Jagan Teki,
	Filip Skoneczny, Sergio Prado, David Lechner, Davide Viti,
	Nikolay Dimitrov, Michał Łyszczek, Suniel Mahesh,
	Yann E . MORIN, ARC Maintainers, Giulio Benetti, Pierre Crokaert,
	Julien Grossholtz, Gerome Burlats, Christophe Priouzeau,
	Lothar Felten, Luca Ceresoli, Romain Naour, Martin Bark

Beatify this genimage .cfg file to have consistency with all genimage .cfg
files in Buildroot.

Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
---
 board/aarch64-efi/genimage-efi.cfg | 45 +++++++++++++++---------------
 1 file changed, 23 insertions(+), 22 deletions(-)

diff --git a/board/aarch64-efi/genimage-efi.cfg b/board/aarch64-efi/genimage-efi.cfg
index 2daa70c361..8ec1f10fd8 100644
--- a/board/aarch64-efi/genimage-efi.cfg
+++ b/board/aarch64-efi/genimage-efi.cfg
@@ -1,29 +1,30 @@
 image efi-part.vfat {
-  vfat {
-    file EFI {
-      image = "efi-part/EFI"
-    }
-    file Image {
-      image = "Image"
-    }
-  }
-  size = 32M
+	vfat {
+		file EFI {
+			image = "efi-part/EFI"
+		}
+		file Image {
+			image = "Image"
+		}
+	}
+
+	size = 32M
 }
 
 image disk.img {
-  hdimage {
-    gpt = true
-  }
+	hdimage {
+		gpt = true
+	}
 
-  partition boot {
-    image = "efi-part.vfat"
-    partition-type-uuid = c12a7328-f81f-11d2-ba4b-00a0c93ec93b
-    offset = 32768
-    bootable = true
-  }
+	partition boot {
+		image = "efi-part.vfat"
+		partition-type-uuid = c12a7328-f81f-11d2-ba4b-00a0c93ec93b
+		offset = 32K
+		bootable = true
+	}
 
-  partition root {
-    partition-type-uuid = b921b045-1df0-41c3-af44-4c6f280d3fae
-    image = "rootfs.ext2"
-  }
+	partition root {
+		partition-type-uuid = b921b045-1df0-41c3-af44-4c6f280d3fae
+		image = "rootfs.ext2"
+	}
 }
-- 
2.25.1

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

* [Buildroot] [PATCH 002/102] board/acmesystems/acqua-a5/genimage.cfg: beautify file
  2021-11-07  1:58 [Buildroot] [PATCH 000/102] Standardize/beautify genimage .cfg files for all boards Giulio Benetti
  2021-11-07  1:58 ` [Buildroot] [PATCH 001/102] board/aarch64-efi/genimage.cfg: beautify file Giulio Benetti
@ 2021-11-07  1:58 ` Giulio Benetti
  2021-11-08 15:07 ` [Buildroot] [PATCH 000/102] Standardize/beautify genimage .cfg files for all boards Yann E. MORIN
  2 siblings, 0 replies; 9+ messages in thread
From: Giulio Benetti @ 2021-11-07  1:58 UTC (permalink / raw)
  To: buildroot
  Cc: Louis Aussedat, Theo Debrouwere, Nicholas Sielicki, Edgar Bonet,
	Alexey Brodkin, Mike Harmony, Marcin Niestroj, Michel Stempin,
	Thomas Petazzoni, Dagg Stompler, Biagio Montaruli,
	Sergey Matyukevich, Jörg Krause, Gwenhael Goavec-Merou,
	Vincent Stehlé,
	Jan Kraval, Ludovic Desroches, Peter Seiderer,
	Clément Péron, Ezequiel Garcia, Jagan Teki,
	Filip Skoneczny, Sergio Prado, David Lechner, Davide Viti,
	Nikolay Dimitrov, Michał Łyszczek, Suniel Mahesh,
	Yann E . MORIN, ARC Maintainers, Giulio Benetti, Pierre Crokaert,
	Julien Grossholtz, Gerome Burlats, Christophe Priouzeau,
	Lothar Felten, Luca Ceresoli, Romain Naour, Martin Bark

Beatify this genimage .cfg file to have consistency with all genimage .cfg
files in Buildroot.

Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
---
 board/acmesystems/acqua-a5/genimage.cfg | 1 +
 1 file changed, 1 insertion(+)

diff --git a/board/acmesystems/acqua-a5/genimage.cfg b/board/acmesystems/acqua-a5/genimage.cfg
index 63b003f378..7fa0a69c4a 100644
--- a/board/acmesystems/acqua-a5/genimage.cfg
+++ b/board/acmesystems/acqua-a5/genimage.cfg
@@ -8,6 +8,7 @@ image boot.vfat {
 			"at91-sama5d3_acqua.dtb"
 		}
 	}
+
 	size = 16M
 }
 
-- 
2.25.1

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

* Re: [Buildroot] [PATCH 000/102] Standardize/beautify genimage .cfg files for all boards
  2021-11-07  1:58 [Buildroot] [PATCH 000/102] Standardize/beautify genimage .cfg files for all boards Giulio Benetti
  2021-11-07  1:58 ` [Buildroot] [PATCH 001/102] board/aarch64-efi/genimage.cfg: beautify file Giulio Benetti
  2021-11-07  1:58 ` [Buildroot] [PATCH 002/102] board/acmesystems/acqua-a5/genimage.cfg: " Giulio Benetti
@ 2021-11-08 15:07 ` Yann E. MORIN
  2021-11-08 15:24   ` Thomas Petazzoni
  2021-11-08 16:01   ` Giulio Benetti
  2 siblings, 2 replies; 9+ messages in thread
From: Yann E. MORIN @ 2021-11-08 15:07 UTC (permalink / raw)
  To: Giulio Benetti; +Cc: Thomas Petazzoni, buildroot

Guilio, All,

(I dropped the Cc list, but Peter, Thomas, and Arnout.)

On 2021-11-07 02:58 +0100, Giulio Benetti spake thusly:
> This patchset aims to set a standard for all genimage .cfg files in
> Buildroot since at the moment various formats are used.

I know this as been discussed on another thread with Peter, about using
K/M instead of bare numbers, and it was my understanding that if a
change were to be made, it would be restricted to just that.

However, I question the relevance of this *huge* patchset just for a
makeover.

Yes, usually, I like consistency, but here we have a two-edge issue:

  - the series is huge, and causes a lot of churn making pending patches
    more difficult to apply,

  - the genimage format is not well defined, and there is no linter, so
    the existing files *will* diverge again, and we won't notice that
    new files won't be compliant.

We know the files will diverge again, because that already hapenned with
our python scripts, even though we did have a check running flake8. So,
for genimage files without a linter? No way they can't and won't...

> First of all I've changed every double space into tab, and in general tab
> becomes the separator in place of space that more than sometimes is used
> mixed with tabs.

I usually l̶o̶̶a̶t̶h̶ d̶e̶s̶p̶i̶s̶e̶ h̶a̶t̶e̶ do not like TABs... The width of a TAB
varies depending on one's environment and coding practices; the usual
8-space width makes for very long, ugly lines; TAB break carefull
indentation.

> There are some space, newline left, no newlines after nodes while
> newlines after other.
> All the offsets and sizes are specified in a mixed way of bytes number,
> K, M, G, hexadecimal.
> So basically these file has never had a standard. Even if a real standard
> is not really defined I ask you to accept this long patchset to improve
> consistency and to ease the readibility of offsets and sizes.

Arguably, one should easily recognise powers-of-two, especially in our
field! ;-]

And especially since 'K' (uppercase) is for Kelvin [0], while kilo is
'k' (lowercase) [1].

Besides, strictly speaking, 'k' is 1000 [1], while 'ki' is 1024 [2], so
seeing 10k can be more confusing than 10240 (but that's not your fault
if genimage accepts 'k' as a power of 1024 ;-) ).

[0] https://en.wikipedia.org/wiki/SI_base_unit
[1] https://en.wikipedia.org/wiki/International_System_of_Units#Prefixes
[2] https://en.wikipedia.org/wiki/Binary_prefix

> I've created a patch per file instead of "topic" like "missing space",
> "convert from space to tab" etc. because it was a big mix of everything
> in more than one file.

And then this gave a 107-patch series. And the commits all have the same
typo: 'beatify' instead of 'beautify'. Although I can forgive a typo
(who would I be not to?), and this one was funny one, fixing all those
manually when applying will be a tedious task, though, so you would have
to do that on your side and respin.

Also, maybe it would be worth categorising by type of board, like all
qemu configs at once, all rpi at once, and so on, with a final commit
with all the remaining un-categorised boards, maybe...

But before you do so, please wait a bit for others to speak up, if this
series is really meaningful.

> I ask, can I add a section in Documentation where to explain how to write
> a "standard" genimage .cfg file? That way there is a guideline.

Yes, please add a section about best practices (and note that existing
files may not yet be up-to-date with those new best practices). Make
that the first patch in the series.

Regards,
Yann E. MORIN.

> Best regards
> 
> Giulio Benetti (102):
>   board/aarch64-efi/genimage.cfg: beautify file
>   board/acmesystems/acqua-a5/genimage.cfg: beautify file
>   board/acmesystems/aria-g25/genimage.cfg: beautify file
>   board/acmesystems/arietta-g25/genimage.cfg: beautify file
>   board/altera/socrates_cyclone5/genimage.cfg: beautify file
>   board/amarula/a64-relic/genimage.cfg: beautify file
>   board/atmel/at91sam9x5ek_mmc/genimage.cfg: beautify file
>   board/atmel/sama5d27_som1_ek_mmc/genimage.cfg: beautify file
>   board/atmel/sama5d27_wlsom1_ek_mmc/genimage.cfg: beautify file
>   board/atmel/sama5d2_xplained_mmc/genimage.cfg: beautify file
>   board/atmel/sama5d3_xplained_mmc/genimage.cfg: beautify file
>   board/atmel/sama5d4_xplained_mmc/genimage.cfg: beautify file
>   board/bananapi/bananapi-m1/genimage.cfg: beautify file
>   board/bananapi/bananapi-m2-ultra/genimage.cfg: beautify file
>   board/bananapi/bananapi-m2-zero/genimage.cfg: beautify file
>   board/bananapi/bananapi-m64/genimage.cfg: beautify file
>   board/beagleboardx15/genimage.cfg: beautify file
>   board/beaglebone/genimage.cfg: beautify file
>   board/beagleboneai/genimage.cfg: beautify file
>   board/beaglev/genimage.cfg: beautify file
>   board/beelink/gs1/genimage.cfg: beautify file
>   board/ci20/genimage.cfg: beautify file
>   board/cubietech/cubieboard2/genimage.cfg: beautify file
>   board/embest/riotboard/genimage.cfg: beautify file
>   board/engicam/geam6ul/genimage.cfg: beautify file
>   board/engicam/icorem6/genimage.cfg: beautify file
>   board/engicam/icorem6_rqs/genimage.cfg: beautify file
>   board/engicam/isiot/genimage.cfg: beautify file
>   board/friendlyarm/nanopc-t4/genimage.cfg: beautify file
>   board/friendlyarm/nanopi-a64/genimage.cfg: beautify file
>   board/friendlyarm/nanopi-m1-plus/genimage.cfg: beautify file
>   board/friendlyarm/nanopi-m1/genimage.cfg: beautify file
>   board/friendlyarm/nanopi-m4/genimage.cfg: beautify file
>   board/friendlyarm/nanopi-neo-plus2/genimage.cfg: beautify file
>   board/friendlyarm/nanopi-neo/genimage.cfg: beautify file
>   board/friendlyarm/nanopi-neo2/genimage.cfg: beautify file
>   board/friendlyarm/nanopi-r1/genimage.cfg: beautify file
>   board/grinn/chiliboard/genimage.cfg: beautify file
>   board/grinn/liteboard/genimage.cfg: beautify file
>   board/hardkernel/odroidc2/genimage.cfg: beautify file
>   board/hardkernel/odroidxu4/genimage.cfg: beautify file
>   board/intel/galileo/genimage.cfg: beautify file
>   board/lego/ev3/genimage.cfg: beautify file
>   board/lemaker/bananapro/genimage.cfg: beautify file
>   board/licheepi/genimage.cfg: beautify file
>   board/linksprite/pcduino/genimage.cfg: beautify file
>   board/microchip/sam9x60ek_mmc/genimage.cfg: beautify file
>   board/microchip/sama5d2_icp/genimage.cfg: beautify file
>   board/minnowboard/genimage.cfg: beautify file
>   board/nexbox/a95x/genimage.cfg: beautify file
>   board/olimex/a13_olinuxino/genimage.cfg: beautify file
>   board/olimex/a20_olinuxino/genimage.cfg: beautify file
>   board/olimex/a33_olinuxino/genimage.cfg: beautify file
>   board/olimex/a64_olinuxino/genimage.cfg: beautify file
>   board/orangepi/orangepi-lite/genimage.cfg: beautify file
>   board/orangepi/orangepi-lite2/genimage.cfg: beautify file
>   board/orangepi/orangepi-one-plus/genimage.cfg: beautify file
>   board/orangepi/orangepi-one/genimage.cfg: beautify file
>   board/orangepi/orangepi-pc-plus/genimage.cfg: beautify file
>   board/orangepi/orangepi-pc/genimage.cfg: beautify file
>   board/orangepi/orangepi-pc2/genimage.cfg: beautify file
>   board/orangepi/orangepi-plus/genimage.cfg: beautify file
>   board/orangepi/orangepi-prime/genimage.cfg: beautify file
>   board/orangepi/orangepi-r1/genimage.cfg: beautify file
>   board/orangepi/orangepi-rk3399/genimage.cfg: beautify file
>   board/orangepi/orangepi-win/genimage.cfg: beautify file
>   board/orangepi/orangepi-zero-plus/genimage.cfg: beautify file
>   board/orangepi/orangepi-zero-plus2/genimage.cfg: beautify file
>   board/orangepi/orangepi-zero/genimage.cfg: beautify file
>   board/pandaboard/genimage.cfg: beautify file
>   board/pc/genimage-bios.cfg: beautify file
>   board/pc/genimage-efi.cfg: beautify file
>   board/pine64/pine64/genimage.cfg: beautify file
>   board/pine64/rock64/genimage.cfg: beautify file
>   board/pine64/rockpro64/genimage.cfg: beautify file
>   board/pine64/sopine/genimage.cfg: beautify file
>   board/qemu/aarch64-sbsa/genimage.cfg: beautify file
>   board/radxa/rockpi-4/genimage.cfg: beautify file
>   board/radxa/rockpi-n10/genimage.cfg: beautify file
>   board/radxa/rockpi-n8/genimage.cfg: beautify file
>   board/raspberrypi/genimage-raspberrypi.cfg: beautify file
>   board/raspberrypi/genimage-raspberrypi0.cfg: beautify file
>   board/raspberrypi/genimage-raspberrypi0w.cfg: beautify file
>   board/raspberrypi/genimage-raspberrypi2.cfg: beautify file
>   board/raspberrypi/genimage-raspberrypi3-64.cfg: beautify file
>   board/raspberrypi/genimage-raspberrypi3.cfg: beautify file
>   board/raspberrypi/genimage-raspberrypi4-64.cfg: beautify file
>   board/raspberrypi/genimage-raspberrypi4.cfg: beautify file
>   board/raspberrypi/genimage-raspberrypicm4io-64.cfg: beautify file
>   board/raspberrypi/genimage-raspberrypicm4io.cfg: beautify file
>   board/roseapplepi/genimage.cfg: beautify file
>   board/sinovoip/m1-plus/genimage.cfg: beautify file
>   board/sinovoip/m2-plus/genimage.cfg: beautify file
>   board/solidrun/macchiatobin/genimage.cfg: beautify file
>   board/stmicroelectronics/stm32f469-disco/genimage.cfg: beautify file
>   board/synopsys/hsdk/genimage.cfg: beautify file
>   board/technologic/ts7680/genimage.cfg: beautify file
>   board/terasic/de10nano_cyclone5/genimage.cfg: beautify file
>   board/toradex/apalis-imx6/genimage.cfg: beautify file
>   board/uevm5432/genimage.cfg: beautify file
>   board/zynq/genimage.cfg: beautify file
>   board/zynqmp/genimage.cfg: beautify file
> 
>  board/aarch64-efi/genimage-efi.cfg            | 45 +++++++-------
>  board/acmesystems/acqua-a5/genimage.cfg       |  1 +
>  board/acmesystems/aria-g25/genimage.cfg       |  1 +
>  board/acmesystems/arietta-g25/genimage.cfg    |  7 ++-
>  board/altera/socrates_cyclone5/genimage.cfg   |  5 +-
>  board/amarula/a64-relic/genimage.cfg          |  1 +
>  board/atmel/at91sam9x5ek_mmc/genimage.cfg     |  1 +
>  board/atmel/sama5d27_som1_ek_mmc/genimage.cfg |  1 +
>  .../atmel/sama5d27_wlsom1_ek_mmc/genimage.cfg |  1 +
>  board/atmel/sama5d2_xplained_mmc/genimage.cfg |  1 +
>  board/atmel/sama5d3_xplained_mmc/genimage.cfg |  1 +
>  board/atmel/sama5d4_xplained_mmc/genimage.cfg |  1 +
>  board/bananapi/bananapi-m1/genimage.cfg       |  5 +-
>  board/bananapi/bananapi-m2-ultra/genimage.cfg |  5 +-
>  board/bananapi/bananapi-m2-zero/genimage.cfg  |  5 +-
>  board/bananapi/bananapi-m64/genimage.cfg      |  5 +-
>  board/beagleboardx15/genimage.cfg             |  3 +-
>  board/beaglebone/genimage.cfg                 |  3 +-
>  board/beagleboneai/genimage.cfg               |  1 +
>  board/beaglev/genimage.cfg                    | 18 +++---
>  board/beelink/gs1/genimage.cfg                |  5 +-
>  board/ci20/genimage.cfg                       | 44 +++++++-------
>  board/cubietech/cubieboard2/genimage.cfg      |  5 +-
>  board/embest/riotboard/genimage.cfg           | 26 ++++----
>  board/engicam/geam6ul/genimage.cfg            |  3 +-
>  board/engicam/icorem6/genimage.cfg            |  3 +-
>  board/engicam/icorem6_rqs/genimage.cfg        |  3 +-
>  board/engicam/isiot/genimage.cfg              |  3 +-
>  board/friendlyarm/nanopc-t4/genimage.cfg      | 60 +++++++++----------
>  board/friendlyarm/nanopi-a64/genimage.cfg     |  5 +-
>  board/friendlyarm/nanopi-m1-plus/genimage.cfg |  5 +-
>  board/friendlyarm/nanopi-m1/genimage.cfg      |  5 +-
>  board/friendlyarm/nanopi-m4/genimage.cfg      |  2 +-
>  .../friendlyarm/nanopi-neo-plus2/genimage.cfg |  5 +-
>  board/friendlyarm/nanopi-neo/genimage.cfg     |  5 +-
>  board/friendlyarm/nanopi-neo2/genimage.cfg    |  5 +-
>  board/friendlyarm/nanopi-r1/genimage.cfg      |  5 +-
>  board/grinn/chiliboard/genimage.cfg           | 43 ++++++-------
>  board/grinn/liteboard/genimage.cfg            | 59 +++++++++---------
>  board/hardkernel/odroidc2/genimage.cfg        |  3 +-
>  board/hardkernel/odroidxu4/genimage.cfg       | 17 +++---
>  board/intel/galileo/genimage.cfg              |  3 +-
>  board/lego/ev3/genimage.cfg                   | 18 ++++--
>  board/lemaker/bananapro/genimage.cfg          |  5 +-
>  board/licheepi/genimage.cfg                   |  5 +-
>  board/linksprite/pcduino/genimage.cfg         |  5 +-
>  board/microchip/sam9x60ek_mmc/genimage.cfg    |  1 +
>  board/microchip/sama5d2_icp/genimage.cfg      |  1 +
>  board/minnowboard/genimage.cfg                |  1 +
>  board/nexbox/a95x/genimage.cfg                |  1 +
>  board/olimex/a13_olinuxino/genimage.cfg       | 32 +++++-----
>  board/olimex/a20_olinuxino/genimage.cfg       |  4 +-
>  board/olimex/a33_olinuxino/genimage.cfg       |  4 +-
>  board/olimex/a64-olinuxino/genimage.cfg       |  5 +-
>  board/orangepi/orangepi-lite/genimage.cfg     |  5 +-
>  board/orangepi/orangepi-lite2/genimage.cfg    |  5 +-
>  board/orangepi/orangepi-one-plus/genimage.cfg |  5 +-
>  board/orangepi/orangepi-one/genimage.cfg      |  5 +-
>  board/orangepi/orangepi-pc-plus/genimage.cfg  |  5 +-
>  board/orangepi/orangepi-pc/genimage.cfg       |  5 +-
>  board/orangepi/orangepi-pc2/genimage.cfg      |  5 +-
>  board/orangepi/orangepi-plus/genimage.cfg     |  5 +-
>  board/orangepi/orangepi-prime/genimage.cfg    |  5 +-
>  board/orangepi/orangepi-r1/genimage.cfg       |  5 +-
>  board/orangepi/orangepi-rk3399/genimage.cfg   |  2 +-
>  board/orangepi/orangepi-win/genimage.cfg      |  5 +-
>  .../orangepi/orangepi-zero-plus/genimage.cfg  |  5 +-
>  .../orangepi/orangepi-zero-plus2/genimage.cfg |  5 +-
>  board/orangepi/orangepi-zero/genimage.cfg     |  4 +-
>  board/pandaboard/genimage.cfg                 |  1 +
>  board/pc/genimage-bios.cfg                    | 36 ++++++-----
>  board/pc/genimage-efi.cfg                     | 49 +++++++--------
>  board/pine64/pine64/genimage.cfg              |  5 +-
>  board/pine64/rock64/genimage.cfg              | 36 +++++------
>  board/pine64/rockpro64/genimage.cfg           |  2 +-
>  board/pine64/sopine/genimage.cfg              |  5 +-
>  board/qemu/aarch64-sbsa/genimage.cfg          | 42 ++++++-------
>  board/radxa/rockpi-4/genimage.cfg             |  2 +-
>  board/radxa/rockpi-n10/genimage.cfg           |  2 +-
>  board/radxa/rockpi-n8/genimage.cfg            |  2 +-
>  board/raspberrypi/genimage-raspberrypi.cfg    | 51 ++++++++--------
>  board/raspberrypi/genimage-raspberrypi0.cfg   | 47 ++++++++-------
>  board/raspberrypi/genimage-raspberrypi0w.cfg  | 49 +++++++--------
>  board/raspberrypi/genimage-raspberrypi2.cfg   | 47 ++++++++-------
>  .../raspberrypi/genimage-raspberrypi3-64.cfg  | 53 ++++++++--------
>  board/raspberrypi/genimage-raspberrypi3.cfg   | 53 ++++++++--------
>  .../raspberrypi/genimage-raspberrypi4-64.cfg  | 47 ++++++++-------
>  board/raspberrypi/genimage-raspberrypi4.cfg   | 47 ++++++++-------
>  .../genimage-raspberrypicm4io-64.cfg          | 47 ++++++++-------
>  .../raspberrypi/genimage-raspberrypicm4io.cfg | 47 ++++++++-------
>  board/roseapplepi/genimage.cfg                | 12 ++--
>  board/sinovoip/m1-plus/genimage.cfg           |  5 +-
>  board/sinovoip/m2-plus/genimage.cfg           |  5 +-
>  board/solidrun/macchiatobin/genimage.cfg      |  4 +-
>  .../stm32f469-disco/genimage.cfg              |  4 +-
>  board/synopsys/hsdk/genimage.cfg              | 42 ++++++-------
>  board/technologic/ts7680/genimage.cfg         |  2 +-
>  board/terasic/de10nano_cyclone5/genimage.cfg  |  1 +
>  board/toradex/apalis-imx6/genimage.cfg        | 14 ++---
>  board/uevm5432/genimage.cfg                   |  1 +
>  board/zynq/genimage.cfg                       |  2 +
>  board/zynqmp/genimage.cfg                     |  1 +
>  102 files changed, 716 insertions(+), 625 deletions(-)
> 
> -- 
> 2.25.1
> 
> _______________________________________________
> buildroot mailing list
> buildroot@buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

* Re: [Buildroot] [PATCH 000/102] Standardize/beautify genimage .cfg files for all boards
  2021-11-08 15:07 ` [Buildroot] [PATCH 000/102] Standardize/beautify genimage .cfg files for all boards Yann E. MORIN
@ 2021-11-08 15:24   ` Thomas Petazzoni
  2021-11-08 16:17     ` Giulio Benetti
  2021-11-08 22:08     ` Arnout Vandecappelle
  2021-11-08 16:01   ` Giulio Benetti
  1 sibling, 2 replies; 9+ messages in thread
From: Thomas Petazzoni @ 2021-11-08 15:24 UTC (permalink / raw)
  To: Yann E. MORIN; +Cc: Giulio Benetti, buildroot

Hello,

On Mon, 8 Nov 2021 16:07:31 +0100
"Yann E. MORIN" <yann.morin.1998@free.fr> wrote:

> I know this as been discussed on another thread with Peter, about using
> K/M instead of bare numbers, and it was my understanding that if a
> change were to be made, it would be restricted to just that.
> 
> However, I question the relevance of this *huge* patchset just for a
> makeover.
> 
> Yes, usually, I like consistency, but here we have a two-edge issue:
> 
>   - the series is huge, and causes a lot of churn making pending patches
>     more difficult to apply,

I would agree in general, but here I doubt it is really going to cause
much conflict with other pending patches.

>   - the genimage format is not well defined, and there is no linter, so
>     the existing files *will* diverge again, and we won't notice that
>     new files won't be compliant.

Right, but that's not really a reason to not take this patch series.

On my side, I would simply apply the whole thing. It makes things
overall better (perhaps not perfect, but better and more consistent).

> I usually l̶o̶̶a̶t̶h̶ d̶e̶s̶p̶i̶s̶e̶ h̶a̶t̶e̶ do not like TABs... The width of a TAB
> varies depending on one's environment and coding practices; the usual
> 8-space width makes for very long, ugly lines; TAB break carefull
> indentation.

A matter of taste indeed, but in "make" (you know this language we
heavily abuse in Buildroot), TABs are king! So it would be kind of
ironical not to allow TABs in a make-based project :-)

> And then this gave a 107-patch series. And the commits all have the same
> typo: 'beatify' instead of 'beautify'. Although I can forgive a typo
> (who would I be not to?), and this one was funny one, fixing all those
> manually when applying will be a tedious task, though, so you would have
> to do that on your side and respin.

I don't know if that typo is worth a huge respin.

> But before you do so, please wait a bit for others to speak up, if this
> series is really meaningful.

I haven't reviewed it in its entirety, but overall, I think we should
just apply, and move on. I.e, be pragmatic.

Thomas
-- 
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

* Re: [Buildroot] [PATCH 000/102] Standardize/beautify genimage .cfg files for all boards
  2021-11-08 15:07 ` [Buildroot] [PATCH 000/102] Standardize/beautify genimage .cfg files for all boards Yann E. MORIN
  2021-11-08 15:24   ` Thomas Petazzoni
@ 2021-11-08 16:01   ` Giulio Benetti
  2021-11-08 18:38     ` Arnout Vandecappelle
  1 sibling, 1 reply; 9+ messages in thread
From: Giulio Benetti @ 2021-11-08 16:01 UTC (permalink / raw)
  To: Yann E. MORIN; +Cc: Thomas Petazzoni, buildroot

Hi Yann, All,

> Il giorno 8 nov 2021, alle ore 16:08, Yann E. MORIN <yann.morin.1998@free.fr> ha scritto:
> 
> Guilio, All,
> 
> (I dropped the Cc list, but Peter, Thomas, and Arnout.)
> 
> On 2021-11-07 02:58 +0100, Giulio Benetti spake thusly:
>> This patchset aims to set a standard for all genimage .cfg files in
>> Buildroot since at the moment various formats are used.
> 
> I know this as been discussed on another thread with Peter, about using
> K/M instead of bare numbers, and it was my understanding that if a
> change were to be made, it would be restricted to just that.

It got a bit out my hands :-)
I’ve started to clean up and went on until the end.

> 
> However, I question the relevance of this *huge* patchset just for a
> makeover.
> 
> Yes, usually, I like consistency, but here we have a two-edge issue:
> 
>  - the series is huge, and causes a lot of churn making pending patches
>    more difficult to apply,

Yes, a bit. Also there is already a commit that conflict, 
but for me(I’m not the maintainer that needs to deal with patches conflicts) has been easy.

> 
>  - the genimage format is not well defined, and there is no linter, so
>    the existing files *will* diverge again, and we won't notice that
>    new files won't be compliant.
> 
> We know the files will diverge again, because that already hapenned with
> our python scripts, even though we did have a check running flake8. So,
> for genimage files without a linter? No way they can't and won't...

Yea I thought about this. I don’t know how much difficult it could be writing one.
But in the end we’re dealing with 102 files that after applying this patchset should be ok and
I don’t see them to change that much in Mailing List after they’ve got added the first time.
I mean, they probably have different offsets and sizes numbers but the format should remain as is.

> 
>> First of all I've changed every double space into tab, and in general tab
>> becomes the separator in place of space that more than sometimes is used
>> mixed with tabs.
> 
> I usually l̶o̶̶a̶t̶h̶ d̶e̶s̶p̶i̶s̶e̶ h̶a̶t̶e̶ do not like TABs... The width of a TAB
> varies depending on one's environment and coding practices; the usual
> 8-space width makes for very long, ugly lines; TAB break carefull
> indentation.

Ah, I take it from Linux guidelines. It avoids nesting and we already use it in Buildroot.

> 
>> There are some space, newline left, no newlines after nodes while
>> newlines after other.
>> All the offsets and sizes are specified in a mixed way of bytes number,
>> K, M, G, hexadecimal.
>> So basically these file has never had a standard. Even if a real standard
>> is not really defined I ask you to accept this long patchset to improve
>> consistency and to ease the readibility of offsets and sizes.
> 
> Arguably, one should easily recognise powers-of-two, especially in our
> field! ;-]

Yes, but for me it’s easier to recognize 128K than 
131.072 in any case.

> 
> And especially since 'K' (uppercase) is for Kelvin [0], while kilo is
> 'k' (lowercase) [1].
> 
> Besides, strictly speaking, 'k' is 1000 [1], while 'ki' is 1024 [2], so
> seeing 10k can be more confusing than 10240 (but that's not your fault
> if genimage accepts 'k' as a power of 1024 ;-) ).

I didn’t know some of these details thank you!
 
Genimage accepts both K and k as 1024 bytes.

Also we can have the control of genimage by contributing. For example on next V15 version there will be the ‘s’ suffix for 512 bytes base.
That can help a lot once it will be released.

> 
> [0] https://en.wikipedia.org/wiki/SI_base_unit
> [1] https://en.wikipedia.org/wiki/International_System_of_Units#Prefixes
> [2] https://en.wikipedia.org/wiki/Binary_prefix
> 
>> I've created a patch per file instead of "topic" like "missing space",
>> "convert from space to tab" etc. because it was a big mix of everything
>> in more than one file.
> 
> And then this gave a 107-patch series. And the commits all have the same
> typo: 'beatify' instead of 'beautify'.

Yes I’ve realized once I’ve made it to send all the patches :-/

> Although I can forgive a typo
> (who would I be not to?), and this one was funny one

It could be “artistic”: I’m beautifying files and I forget the typo in commit log :-). Just joking.

> , fixing all those
> manually when applying will be a tedious task, though, so you would have
> to do that on your side and respin.
> 
> Also, maybe it would be worth categorising by type of board, like all
> qemu configs at once, all rpi at once, and so on, with a final commit
> with all the remaining un-categorised boards, maybe...
> 
> But before you do so, please wait a bit for others to speak up, if this
> series is really meaningful.

Sure

> 
>> I ask, can I add a section in Documentation where to explain how to write
>> a "standard" genimage .cfg file? That way there is a guideline.
> 
> Yes, please add a section about best practices (and note that existing
> files may not yet be up-to-date with those new best practices). Make
> that the first patch in the series.

Ok, I will. So this is my first Documentation contribution.

Thank you and
Best regards
Giulio Benetti
Benetti Engineering sas

> 
> Regards,
> Yann E. MORIN.
> 
>> Best regards
>> 
>> Giulio Benetti (102):
>>  board/aarch64-efi/genimage.cfg: beautify file
>>  board/acmesystems/acqua-a5/genimage.cfg: beautify file
>>  board/acmesystems/aria-g25/genimage.cfg: beautify file
>>  board/acmesystems/arietta-g25/genimage.cfg: beautify file
>>  board/altera/socrates_cyclone5/genimage.cfg: beautify file
>>  board/amarula/a64-relic/genimage.cfg: beautify file
>>  board/atmel/at91sam9x5ek_mmc/genimage.cfg: beautify file
>>  board/atmel/sama5d27_som1_ek_mmc/genimage.cfg: beautify file
>>  board/atmel/sama5d27_wlsom1_ek_mmc/genimage.cfg: beautify file
>>  board/atmel/sama5d2_xplained_mmc/genimage.cfg: beautify file
>>  board/atmel/sama5d3_xplained_mmc/genimage.cfg: beautify file
>>  board/atmel/sama5d4_xplained_mmc/genimage.cfg: beautify file
>>  board/bananapi/bananapi-m1/genimage.cfg: beautify file
>>  board/bananapi/bananapi-m2-ultra/genimage.cfg: beautify file
>>  board/bananapi/bananapi-m2-zero/genimage.cfg: beautify file
>>  board/bananapi/bananapi-m64/genimage.cfg: beautify file
>>  board/beagleboardx15/genimage.cfg: beautify file
>>  board/beaglebone/genimage.cfg: beautify file
>>  board/beagleboneai/genimage.cfg: beautify file
>>  board/beaglev/genimage.cfg: beautify file
>>  board/beelink/gs1/genimage.cfg: beautify file
>>  board/ci20/genimage.cfg: beautify file
>>  board/cubietech/cubieboard2/genimage.cfg: beautify file
>>  board/embest/riotboard/genimage.cfg: beautify file
>>  board/engicam/geam6ul/genimage.cfg: beautify file
>>  board/engicam/icorem6/genimage.cfg: beautify file
>>  board/engicam/icorem6_rqs/genimage.cfg: beautify file
>>  board/engicam/isiot/genimage.cfg: beautify file
>>  board/friendlyarm/nanopc-t4/genimage.cfg: beautify file
>>  board/friendlyarm/nanopi-a64/genimage.cfg: beautify file
>>  board/friendlyarm/nanopi-m1-plus/genimage.cfg: beautify file
>>  board/friendlyarm/nanopi-m1/genimage.cfg: beautify file
>>  board/friendlyarm/nanopi-m4/genimage.cfg: beautify file
>>  board/friendlyarm/nanopi-neo-plus2/genimage.cfg: beautify file
>>  board/friendlyarm/nanopi-neo/genimage.cfg: beautify file
>>  board/friendlyarm/nanopi-neo2/genimage.cfg: beautify file
>>  board/friendlyarm/nanopi-r1/genimage.cfg: beautify file
>>  board/grinn/chiliboard/genimage.cfg: beautify file
>>  board/grinn/liteboard/genimage.cfg: beautify file
>>  board/hardkernel/odroidc2/genimage.cfg: beautify file
>>  board/hardkernel/odroidxu4/genimage.cfg: beautify file
>>  board/intel/galileo/genimage.cfg: beautify file
>>  board/lego/ev3/genimage.cfg: beautify file
>>  board/lemaker/bananapro/genimage.cfg: beautify file
>>  board/licheepi/genimage.cfg: beautify file
>>  board/linksprite/pcduino/genimage.cfg: beautify file
>>  board/microchip/sam9x60ek_mmc/genimage.cfg: beautify file
>>  board/microchip/sama5d2_icp/genimage.cfg: beautify file
>>  board/minnowboard/genimage.cfg: beautify file
>>  board/nexbox/a95x/genimage.cfg: beautify file
>>  board/olimex/a13_olinuxino/genimage.cfg: beautify file
>>  board/olimex/a20_olinuxino/genimage.cfg: beautify file
>>  board/olimex/a33_olinuxino/genimage.cfg: beautify file
>>  board/olimex/a64_olinuxino/genimage.cfg: beautify file
>>  board/orangepi/orangepi-lite/genimage.cfg: beautify file
>>  board/orangepi/orangepi-lite2/genimage.cfg: beautify file
>>  board/orangepi/orangepi-one-plus/genimage.cfg: beautify file
>>  board/orangepi/orangepi-one/genimage.cfg: beautify file
>>  board/orangepi/orangepi-pc-plus/genimage.cfg: beautify file
>>  board/orangepi/orangepi-pc/genimage.cfg: beautify file
>>  board/orangepi/orangepi-pc2/genimage.cfg: beautify file
>>  board/orangepi/orangepi-plus/genimage.cfg: beautify file
>>  board/orangepi/orangepi-prime/genimage.cfg: beautify file
>>  board/orangepi/orangepi-r1/genimage.cfg: beautify file
>>  board/orangepi/orangepi-rk3399/genimage.cfg: beautify file
>>  board/orangepi/orangepi-win/genimage.cfg: beautify file
>>  board/orangepi/orangepi-zero-plus/genimage.cfg: beautify file
>>  board/orangepi/orangepi-zero-plus2/genimage.cfg: beautify file
>>  board/orangepi/orangepi-zero/genimage.cfg: beautify file
>>  board/pandaboard/genimage.cfg: beautify file
>>  board/pc/genimage-bios.cfg: beautify file
>>  board/pc/genimage-efi.cfg: beautify file
>>  board/pine64/pine64/genimage.cfg: beautify file
>>  board/pine64/rock64/genimage.cfg: beautify file
>>  board/pine64/rockpro64/genimage.cfg: beautify file
>>  board/pine64/sopine/genimage.cfg: beautify file
>>  board/qemu/aarch64-sbsa/genimage.cfg: beautify file
>>  board/radxa/rockpi-4/genimage.cfg: beautify file
>>  board/radxa/rockpi-n10/genimage.cfg: beautify file
>>  board/radxa/rockpi-n8/genimage.cfg: beautify file
>>  board/raspberrypi/genimage-raspberrypi.cfg: beautify file
>>  board/raspberrypi/genimage-raspberrypi0.cfg: beautify file
>>  board/raspberrypi/genimage-raspberrypi0w.cfg: beautify file
>>  board/raspberrypi/genimage-raspberrypi2.cfg: beautify file
>>  board/raspberrypi/genimage-raspberrypi3-64.cfg: beautify file
>>  board/raspberrypi/genimage-raspberrypi3.cfg: beautify file
>>  board/raspberrypi/genimage-raspberrypi4-64.cfg: beautify file
>>  board/raspberrypi/genimage-raspberrypi4.cfg: beautify file
>>  board/raspberrypi/genimage-raspberrypicm4io-64.cfg: beautify file
>>  board/raspberrypi/genimage-raspberrypicm4io.cfg: beautify file
>>  board/roseapplepi/genimage.cfg: beautify file
>>  board/sinovoip/m1-plus/genimage.cfg: beautify file
>>  board/sinovoip/m2-plus/genimage.cfg: beautify file
>>  board/solidrun/macchiatobin/genimage.cfg: beautify file
>>  board/stmicroelectronics/stm32f469-disco/genimage.cfg: beautify file
>>  board/synopsys/hsdk/genimage.cfg: beautify file
>>  board/technologic/ts7680/genimage.cfg: beautify file
>>  board/terasic/de10nano_cyclone5/genimage.cfg: beautify file
>>  board/toradex/apalis-imx6/genimage.cfg: beautify file
>>  board/uevm5432/genimage.cfg: beautify file
>>  board/zynq/genimage.cfg: beautify file
>>  board/zynqmp/genimage.cfg: beautify file
>> 
>> board/aarch64-efi/genimage-efi.cfg            | 45 +++++++-------
>> board/acmesystems/acqua-a5/genimage.cfg       |  1 +
>> board/acmesystems/aria-g25/genimage.cfg       |  1 +
>> board/acmesystems/arietta-g25/genimage.cfg    |  7 ++-
>> board/altera/socrates_cyclone5/genimage.cfg   |  5 +-
>> board/amarula/a64-relic/genimage.cfg          |  1 +
>> board/atmel/at91sam9x5ek_mmc/genimage.cfg     |  1 +
>> board/atmel/sama5d27_som1_ek_mmc/genimage.cfg |  1 +
>> .../atmel/sama5d27_wlsom1_ek_mmc/genimage.cfg |  1 +
>> board/atmel/sama5d2_xplained_mmc/genimage.cfg |  1 +
>> board/atmel/sama5d3_xplained_mmc/genimage.cfg |  1 +
>> board/atmel/sama5d4_xplained_mmc/genimage.cfg |  1 +
>> board/bananapi/bananapi-m1/genimage.cfg       |  5 +-
>> board/bananapi/bananapi-m2-ultra/genimage.cfg |  5 +-
>> board/bananapi/bananapi-m2-zero/genimage.cfg  |  5 +-
>> board/bananapi/bananapi-m64/genimage.cfg      |  5 +-
>> board/beagleboardx15/genimage.cfg             |  3 +-
>> board/beaglebone/genimage.cfg                 |  3 +-
>> board/beagleboneai/genimage.cfg               |  1 +
>> board/beaglev/genimage.cfg                    | 18 +++---
>> board/beelink/gs1/genimage.cfg                |  5 +-
>> board/ci20/genimage.cfg                       | 44 +++++++-------
>> board/cubietech/cubieboard2/genimage.cfg      |  5 +-
>> board/embest/riotboard/genimage.cfg           | 26 ++++----
>> board/engicam/geam6ul/genimage.cfg            |  3 +-
>> board/engicam/icorem6/genimage.cfg            |  3 +-
>> board/engicam/icorem6_rqs/genimage.cfg        |  3 +-
>> board/engicam/isiot/genimage.cfg              |  3 +-
>> board/friendlyarm/nanopc-t4/genimage.cfg      | 60 +++++++++----------
>> board/friendlyarm/nanopi-a64/genimage.cfg     |  5 +-
>> board/friendlyarm/nanopi-m1-plus/genimage.cfg |  5 +-
>> board/friendlyarm/nanopi-m1/genimage.cfg      |  5 +-
>> board/friendlyarm/nanopi-m4/genimage.cfg      |  2 +-
>> .../friendlyarm/nanopi-neo-plus2/genimage.cfg |  5 +-
>> board/friendlyarm/nanopi-neo/genimage.cfg     |  5 +-
>> board/friendlyarm/nanopi-neo2/genimage.cfg    |  5 +-
>> board/friendlyarm/nanopi-r1/genimage.cfg      |  5 +-
>> board/grinn/chiliboard/genimage.cfg           | 43 ++++++-------
>> board/grinn/liteboard/genimage.cfg            | 59 +++++++++---------
>> board/hardkernel/odroidc2/genimage.cfg        |  3 +-
>> board/hardkernel/odroidxu4/genimage.cfg       | 17 +++---
>> board/intel/galileo/genimage.cfg              |  3 +-
>> board/lego/ev3/genimage.cfg                   | 18 ++++--
>> board/lemaker/bananapro/genimage.cfg          |  5 +-
>> board/licheepi/genimage.cfg                   |  5 +-
>> board/linksprite/pcduino/genimage.cfg         |  5 +-
>> board/microchip/sam9x60ek_mmc/genimage.cfg    |  1 +
>> board/microchip/sama5d2_icp/genimage.cfg      |  1 +
>> board/minnowboard/genimage.cfg                |  1 +
>> board/nexbox/a95x/genimage.cfg                |  1 +
>> board/olimex/a13_olinuxino/genimage.cfg       | 32 +++++-----
>> board/olimex/a20_olinuxino/genimage.cfg       |  4 +-
>> board/olimex/a33_olinuxino/genimage.cfg       |  4 +-
>> board/olimex/a64-olinuxino/genimage.cfg       |  5 +-
>> board/orangepi/orangepi-lite/genimage.cfg     |  5 +-
>> board/orangepi/orangepi-lite2/genimage.cfg    |  5 +-
>> board/orangepi/orangepi-one-plus/genimage.cfg |  5 +-
>> board/orangepi/orangepi-one/genimage.cfg      |  5 +-
>> board/orangepi/orangepi-pc-plus/genimage.cfg  |  5 +-
>> board/orangepi/orangepi-pc/genimage.cfg       |  5 +-
>> board/orangepi/orangepi-pc2/genimage.cfg      |  5 +-
>> board/orangepi/orangepi-plus/genimage.cfg     |  5 +-
>> board/orangepi/orangepi-prime/genimage.cfg    |  5 +-
>> board/orangepi/orangepi-r1/genimage.cfg       |  5 +-
>> board/orangepi/orangepi-rk3399/genimage.cfg   |  2 +-
>> board/orangepi/orangepi-win/genimage.cfg      |  5 +-
>> .../orangepi/orangepi-zero-plus/genimage.cfg  |  5 +-
>> .../orangepi/orangepi-zero-plus2/genimage.cfg |  5 +-
>> board/orangepi/orangepi-zero/genimage.cfg     |  4 +-
>> board/pandaboard/genimage.cfg                 |  1 +
>> board/pc/genimage-bios.cfg                    | 36 ++++++-----
>> board/pc/genimage-efi.cfg                     | 49 +++++++--------
>> board/pine64/pine64/genimage.cfg              |  5 +-
>> board/pine64/rock64/genimage.cfg              | 36 +++++------
>> board/pine64/rockpro64/genimage.cfg           |  2 +-
>> board/pine64/sopine/genimage.cfg              |  5 +-
>> board/qemu/aarch64-sbsa/genimage.cfg          | 42 ++++++-------
>> board/radxa/rockpi-4/genimage.cfg             |  2 +-
>> board/radxa/rockpi-n10/genimage.cfg           |  2 +-
>> board/radxa/rockpi-n8/genimage.cfg            |  2 +-
>> board/raspberrypi/genimage-raspberrypi.cfg    | 51 ++++++++--------
>> board/raspberrypi/genimage-raspberrypi0.cfg   | 47 ++++++++-------
>> board/raspberrypi/genimage-raspberrypi0w.cfg  | 49 +++++++--------
>> board/raspberrypi/genimage-raspberrypi2.cfg   | 47 ++++++++-------
>> .../raspberrypi/genimage-raspberrypi3-64.cfg  | 53 ++++++++--------
>> board/raspberrypi/genimage-raspberrypi3.cfg   | 53 ++++++++--------
>> .../raspberrypi/genimage-raspberrypi4-64.cfg  | 47 ++++++++-------
>> board/raspberrypi/genimage-raspberrypi4.cfg   | 47 ++++++++-------
>> .../genimage-raspberrypicm4io-64.cfg          | 47 ++++++++-------
>> .../raspberrypi/genimage-raspberrypicm4io.cfg | 47 ++++++++-------
>> board/roseapplepi/genimage.cfg                | 12 ++--
>> board/sinovoip/m1-plus/genimage.cfg           |  5 +-
>> board/sinovoip/m2-plus/genimage.cfg           |  5 +-
>> board/solidrun/macchiatobin/genimage.cfg      |  4 +-
>> .../stm32f469-disco/genimage.cfg              |  4 +-
>> board/synopsys/hsdk/genimage.cfg              | 42 ++++++-------
>> board/technologic/ts7680/genimage.cfg         |  2 +-
>> board/terasic/de10nano_cyclone5/genimage.cfg  |  1 +
>> board/toradex/apalis-imx6/genimage.cfg        | 14 ++---
>> board/uevm5432/genimage.cfg                   |  1 +
>> board/zynq/genimage.cfg                       |  2 +
>> board/zynqmp/genimage.cfg                     |  1 +
>> 102 files changed, 716 insertions(+), 625 deletions(-)
>> 
>> -- 
>> 2.25.1
>> 
>> _______________________________________________
>> buildroot mailing list
>> buildroot@buildroot.org
>> https://lists.buildroot.org/mailman/listinfo/buildroot
> 
> -- 
> .-----------------.--------------------.------------------.--------------------.
> |  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
> | +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
> | +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
> | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
> '------------------------------^-------^------------------^--------------------'

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

* Re: [Buildroot] [PATCH 000/102] Standardize/beautify genimage .cfg files for all boards
  2021-11-08 15:24   ` Thomas Petazzoni
@ 2021-11-08 16:17     ` Giulio Benetti
  2021-11-08 22:08     ` Arnout Vandecappelle
  1 sibling, 0 replies; 9+ messages in thread
From: Giulio Benetti @ 2021-11-08 16:17 UTC (permalink / raw)
  To: Thomas Petazzoni; +Cc: Yann E. MORIN, buildroot

Hello Thomas, Yann, All,

> Il giorno 8 nov 2021, alle ore 16:24, Thomas Petazzoni <thomas.petazzoni@bootlin.com> ha scritto:
> 
> Hello,
> 
>> On Mon, 8 Nov 2021 16:07:31 +0100
>> "Yann E. MORIN" <yann.morin.1998@free.fr> wrote:
>> 
>> I know this as been discussed on another thread with Peter, about using
>> K/M instead of bare numbers, and it was my understanding that if a
>> change were to be made, it would be restricted to just that.
>> 
>> However, I question the relevance of this *huge* patchset just for a
>> makeover.
>> 
>> Yes, usually, I like consistency, but here we have a two-edge issue:
>> 
>>  - the series is huge, and causes a lot of churn making pending patches
>>    more difficult to apply,
> 
> I would agree in general, but here I doubt it is really going to cause
> much conflict with other pending patches.
> 
>>  - the genimage format is not well defined, and there is no linter, so
>>    the existing files *will* diverge again, and we won't notice that
>>    new files won't be compliant.
> 
> Right, but that's not really a reason to not take this patch series.
> 
> On my side, I would simply apply the whole thing. It makes things
> overall better (perhaps not perfect, but better and more consistent).
> 
>> I usually l̶o̶̶a̶t̶h̶ d̶e̶s̶p̶i̶s̶e̶ h̶a̶t̶e̶ do not like TABs... The width of a TAB
>> varies depending on one's environment and coding practices; the usual
>> 8-space width makes for very long, ugly lines; TAB break carefull
>> indentation.
> 
> A matter of taste indeed, but in "make" (you know this language we
> heavily abuse in Buildroot), TABs are king! So it would be kind of
> ironical not to allow TABs in a make-based project :-)
> 
>> And then this gave a 107-patch series. And the commits all have the same
>> typo: 'beatify' instead of 'beautify'. Although I can forgive a typo
>> (who would I be not to?), and this one was funny one, fixing all those
>> manually when applying will be a tedious task, though, so you would have
>> to do that on your side and respin.
> 
> I don't know if that typo is worth a huge respin.

If it’s needed I can, at least I’ve found how not become a spammer now!

> 
>> But before you do so, please wait a bit for others to speak up, if this
>> series is really meaningful.
> 
> I haven't reviewed it in its entirety, but overall, I think we should
> just apply, and move on. I.e, be pragmatic.

If some problem due to this arise I’m available(boot problems etc.).

I don’t know if it’s worth i become Maintainer for *.cfg files? For what is worth I could be the one who deals with this kind of problem.

I can keep my eyes open on Mailing List for this, also I think that lot of people have noticed this bomb patchset and so if some problem arises maybe other people “know” this is the reason.

Best regards
Giulio Benetti
Benetti Engineering sas

> 
> Thomas
> -- 
> Thomas Petazzoni, co-owner and CEO, Bootlin
> Embedded Linux and Kernel engineering and training
> https://bootlin.com

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

* Re: [Buildroot] [PATCH 000/102] Standardize/beautify genimage .cfg files for all boards
  2021-11-08 16:01   ` Giulio Benetti
@ 2021-11-08 18:38     ` Arnout Vandecappelle
  0 siblings, 0 replies; 9+ messages in thread
From: Arnout Vandecappelle @ 2021-11-08 18:38 UTC (permalink / raw)
  To: Giulio Benetti, Yann E. MORIN; +Cc: Thomas Petazzoni, buildroot



On 08/11/2021 17:01, Giulio Benetti wrote:
> Hi Yann, All,
> 
>> Il giorno 8 nov 2021, alle ore 16:08, Yann E. MORIN <yann.morin.1998@free.fr> ha scritto:
>>
>> Guilio, All,
>>
[snip]
>>   - the genimage format is not well defined, and there is no linter, so
>>     the existing files *will* diverge again, and we won't notice that
>>     new files won't be compliant.
>>
>> We know the files will diverge again, because that already hapenned with
>> our python scripts, even though we did have a check running flake8. So,
>> for genimage files without a linter? No way they can't and won't...
> 
> Yea I thought about this. I don’t know how much difficult it could be writing one.

  I think it should be easy enough to extend the check-package script to check 
for at least some of the issues (e.g. tabs used for indentation).


  Regards,
  Arnout

[snip]
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

* Re: [Buildroot] [PATCH 000/102] Standardize/beautify genimage .cfg files for all boards
  2021-11-08 15:24   ` Thomas Petazzoni
  2021-11-08 16:17     ` Giulio Benetti
@ 2021-11-08 22:08     ` Arnout Vandecappelle
  1 sibling, 0 replies; 9+ messages in thread
From: Arnout Vandecappelle @ 2021-11-08 22:08 UTC (permalink / raw)
  To: Thomas Petazzoni, Yann E. MORIN; +Cc: Giulio Benetti, buildroot



On 08/11/2021 16:24, Thomas Petazzoni wrote:
> Hello,
> 
> On Mon, 8 Nov 2021 16:07:31 +0100
> "Yann E. MORIN" <yann.morin.1998@free.fr> wrote:
> 
>> I know this as been discussed on another thread with Peter, about using
>> K/M instead of bare numbers, and it was my understanding that if a
>> change were to be made, it would be restricted to just that.
>>
>> However, I question the relevance of this *huge* patchset just for a
>> makeover.
>>
>> Yes, usually, I like consistency, but here we have a two-edge issue:
>>
>>    - the series is huge, and causes a lot of churn making pending patches
>>      more difficult to apply,
> 
> I would agree in general, but here I doubt it is really going to cause
> much conflict with other pending patches.
> 
>>    - the genimage format is not well defined, and there is no linter, so
>>      the existing files *will* diverge again, and we won't notice that
>>      new files won't be compliant.
> 
> Right, but that's not really a reason to not take this patch series.
> 
> On my side, I would simply apply the whole thing. It makes things
> overall better (perhaps not perfect, but better and more consistent).

  Since I agree with Thomas, and since Giulio promised he'd make a check-package 
check for it, I applied the series.

  To avoid problems with merges down the line, I applied to both master and next.

  Regards,
  Arnout

> 
>> I usually l̶o̶̶a̶t̶h̶ d̶e̶s̶p̶i̶s̶e̶ h̶a̶t̶e̶ do not like TABs... The width of a TAB
>> varies depending on one's environment and coding practices; the usual
>> 8-space width makes for very long, ugly lines; TAB break carefull
>> indentation.
> 
> A matter of taste indeed, but in "make" (you know this language we
> heavily abuse in Buildroot), TABs are king! So it would be kind of
> ironical not to allow TABs in a make-based project :-)
> 
>> And then this gave a 107-patch series. And the commits all have the same
>> typo: 'beatify' instead of 'beautify'. Although I can forgive a typo
>> (who would I be not to?), and this one was funny one, fixing all those
>> manually when applying will be a tedious task, though, so you would have
>> to do that on your side and respin.
> 
> I don't know if that typo is worth a huge respin.
> 
>> But before you do so, please wait a bit for others to speak up, if this
>> series is really meaningful.
> 
> I haven't reviewed it in its entirety, but overall, I think we should
> just apply, and move on. I.e, be pragmatic.
> 
> Thomas
> 
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

end of thread, other threads:[~2021-11-08 22:26 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-07  1:58 [Buildroot] [PATCH 000/102] Standardize/beautify genimage .cfg files for all boards Giulio Benetti
2021-11-07  1:58 ` [Buildroot] [PATCH 001/102] board/aarch64-efi/genimage.cfg: beautify file Giulio Benetti
2021-11-07  1:58 ` [Buildroot] [PATCH 002/102] board/acmesystems/acqua-a5/genimage.cfg: " Giulio Benetti
2021-11-08 15:07 ` [Buildroot] [PATCH 000/102] Standardize/beautify genimage .cfg files for all boards Yann E. MORIN
2021-11-08 15:24   ` Thomas Petazzoni
2021-11-08 16:17     ` Giulio Benetti
2021-11-08 22:08     ` Arnout Vandecappelle
2021-11-08 16:01   ` Giulio Benetti
2021-11-08 18:38     ` Arnout Vandecappelle

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.