summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Hughes <tomhughes@chromium.org>2022-06-14 14:18:34 -0700
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-06-15 22:14:33 +0000
commit38ef6b7306679544e8e86adcebb3cb8ff3c78a3d (patch)
tree1cdd5f599019c9e90631529f1f9f332411bd36cc
parent947e505d26f2dccab0e914e6b4705fd0e9938b77 (diff)
downloadchrome-ec-38ef6b7306679544e8e86adcebb3cb8ff3c78a3d.tar.gz
tree: Files should end with single newline
One of the checks that runs as part of "repo upload" looks for a single newline at the end of each file. I'm getting warnings about this when I touch files that do not follow this, even though I didn't add the extra newlines. This commit fixes additional files not included in https://crrev.com/c/3229797 by running the following: for f in $(find . -name '*.mk'); do printf '%s\n' "$(cat ${f})" > ${f}; done for f in $(find . -name '*.S'); do printf '%s\n' "$(cat ${f})" > ${f} done BRANCH=none BUG=b:172020503, b:234181908 TEST=./util/compare_build.sh -b all -j 120 Signed-off-by: Tom Hughes <tomhughes@chromium.org> Change-Id: Ib4e4d0e74bf3b00a0b2c81505fef65e2c1b7401f Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3705766 Reviewed-by: Denis Brockus <dbrockus@chromium.org>
-rw-r--r--baseboard/guybrush/build.mk2
-rw-r--r--baseboard/kalista/build.mk2
-rw-r--r--baseboard/nucleo-h743zi/build.mk2
-rw-r--r--board/hatch_fp/build.mk2
-rw-r--r--chip/max32660/build.mk1
-rw-r--r--chip/mt_scp/mt8192/build.mk1
-rw-r--r--chip/mt_scp/mt8195/build.mk1
-rw-r--r--core/cortex-m/init.S1
-rw-r--r--core/cortex-m/switch.S1
-rw-r--r--core/cortex-m0/init.S1
-rw-r--r--core/nds32/switch.S1
-rw-r--r--fuzz/build.mk2
-rw-r--r--third_party/unacl-curve25519/core/cortex-m0/curve25519/mpy121666.S1
-rw-r--r--third_party/unacl-curve25519/core/cortex-m0/curve25519/mul.S1
-rw-r--r--third_party/unacl-curve25519/core/cortex-m0/curve25519/reduce25519.S1
15 files changed, 5 insertions, 15 deletions
diff --git a/baseboard/guybrush/build.mk b/baseboard/guybrush/build.mk
index 976ff2c931..dff52adc93 100644
--- a/baseboard/guybrush/build.mk
+++ b/baseboard/guybrush/build.mk
@@ -12,4 +12,4 @@ CHIP_VARIANT:=npcx9m3f
baseboard-y=baseboard.o
baseboard-$(CONFIG_USB_POWER_DELIVERY)+=usb_pd_policy.o
-baseboard-$(CONFIG_CBI_EEPROM)+=cbi.o \ No newline at end of file
+baseboard-$(CONFIG_CBI_EEPROM)+=cbi.o
diff --git a/baseboard/kalista/build.mk b/baseboard/kalista/build.mk
index 85270d4bd4..fb844b19f1 100644
--- a/baseboard/kalista/build.mk
+++ b/baseboard/kalista/build.mk
@@ -8,4 +8,4 @@
baseboard-y=baseboard.o
baseboard-y+=led.o
-baseboard-$(CONFIG_USB_POWER_DELIVERY)+=usb_pd_policy.o usb_pd_pdo.o \ No newline at end of file
+baseboard-$(CONFIG_USB_POWER_DELIVERY)+=usb_pd_policy.o usb_pd_pdo.o
diff --git a/baseboard/nucleo-h743zi/build.mk b/baseboard/nucleo-h743zi/build.mk
index e9f9ae3faa..470214aabc 100644
--- a/baseboard/nucleo-h743zi/build.mk
+++ b/baseboard/nucleo-h743zi/build.mk
@@ -11,4 +11,4 @@ CHIP:=stm32
CHIP_FAMILY:=stm32h7
CHIP_VARIANT:=stm32h7x3
-baseboard-y=base-board.o \ No newline at end of file
+baseboard-y=base-board.o
diff --git a/board/hatch_fp/build.mk b/board/hatch_fp/build.mk
index 8986d3ee91..cffb093fc8 100644
--- a/board/hatch_fp/build.mk
+++ b/board/hatch_fp/build.mk
@@ -57,4 +57,4 @@ test-list-y=\
# Note that this variable includes the trailing "/"
_hatch_fp_cur_dir:=$(dir $(lastword $(MAKEFILE_LIST)))
--include $(_hatch_fp_cur_dir)../../private/board/hatch_fp/build.mk \ No newline at end of file
+-include $(_hatch_fp_cur_dir)../../private/board/hatch_fp/build.mk
diff --git a/chip/max32660/build.mk b/chip/max32660/build.mk
index 67fa079ca3..ea1ea6c330 100644
--- a/chip/max32660/build.mk
+++ b/chip/max32660/build.mk
@@ -18,4 +18,3 @@ chip-$(CONFIG_I2C)+=i2c_chip.o
# Optional chip modules
chip-$(CONFIG_FLASH_PHYSICAL)+=flash_chip.o
chip-$(CONFIG_WATCHDOG)+=wdt_chip.o
-
diff --git a/chip/mt_scp/mt8192/build.mk b/chip/mt_scp/mt8192/build.mk
index c81bd83595..e61cdafb01 100644
--- a/chip/mt_scp/mt8192/build.mk
+++ b/chip/mt_scp/mt8192/build.mk
@@ -7,4 +7,3 @@
chip-y+=$(CHIP_VARIANT)/uart.o
chip-y+=$(CHIP_VARIANT)/clock.o
chip-y+=$(CHIP_VARIANT)/video.o
-
diff --git a/chip/mt_scp/mt8195/build.mk b/chip/mt_scp/mt8195/build.mk
index c81bd83595..e61cdafb01 100644
--- a/chip/mt_scp/mt8195/build.mk
+++ b/chip/mt_scp/mt8195/build.mk
@@ -7,4 +7,3 @@
chip-y+=$(CHIP_VARIANT)/uart.o
chip-y+=$(CHIP_VARIANT)/clock.o
chip-y+=$(CHIP_VARIANT)/video.o
-
diff --git a/core/cortex-m/init.S b/core/cortex-m/init.S
index 70f6df1edd..9d4815ac79 100644
--- a/core/cortex-m/init.S
+++ b/core/cortex-m/init.S
@@ -123,4 +123,3 @@ stack_start:
.space CONFIG_STACK_SIZE, 0
stack_end:
.global stack_end
-
diff --git a/core/cortex-m/switch.S b/core/cortex-m/switch.S
index f56c5e4c74..6573e0ecaa 100644
--- a/core/cortex-m/switch.S
+++ b/core/cortex-m/switch.S
@@ -98,4 +98,3 @@ __task_start:
/* we should never return here */
mov r0, #1 @ set to EC_ERROR_UNKNOWN
bx lr
-
diff --git a/core/cortex-m0/init.S b/core/cortex-m0/init.S
index 15446552bd..6ccb75bbe8 100644
--- a/core/cortex-m0/init.S
+++ b/core/cortex-m0/init.S
@@ -117,4 +117,3 @@ stack_start:
.space CONFIG_STACK_SIZE, 0
stack_end:
.global stack_end
-
diff --git a/core/nds32/switch.S b/core/nds32/switch.S
index 631b0e0fe2..13d1b14345 100644
--- a/core/nds32/switch.S
+++ b/core/nds32/switch.S
@@ -106,4 +106,3 @@ __task_start:
/* we should never return here: set code to EC_ERROR_UNKNOWN */
movi55 $r0, 0x1
ret5 $lp
-
diff --git a/fuzz/build.mk b/fuzz/build.mk
index 3b5f117d20..ebb5a3a839 100644
--- a/fuzz/build.mk
+++ b/fuzz/build.mk
@@ -31,4 +31,4 @@ usb_tcpm_v2_rev30_fuzz-y = usb_pd_fuzz.o usb_tcpm_v2_rev30_fuzz.o \
../test/fake_battery.o
usb_tcpm_v2_rev20_fuzz-y = usb_pd_fuzz.o usb_tcpm_v2_rev20_fuzz.o \
../test/fake_battery.o
-pchg_fuzz-y = pchg_fuzz.o \ No newline at end of file
+pchg_fuzz-y = pchg_fuzz.o
diff --git a/third_party/unacl-curve25519/core/cortex-m0/curve25519/mpy121666.S b/third_party/unacl-curve25519/core/cortex-m0/curve25519/mpy121666.S
index d2a467459b..0f847a2484 100644
--- a/third_party/unacl-curve25519/core/cortex-m0/curve25519/mpy121666.S
+++ b/third_party/unacl-curve25519/core/cortex-m0/curve25519/mpy121666.S
@@ -178,4 +178,3 @@ fe25519_mpyWith121666_asm:
pop {r4,r5,r6,r7,r15}
.size fe25519_mpyWith121666_asm, .-fe25519_mpyWith121666_asm
-
diff --git a/third_party/unacl-curve25519/core/cortex-m0/curve25519/mul.S b/third_party/unacl-curve25519/core/cortex-m0/curve25519/mul.S
index 366713a7a3..cb272b9393 100644
--- a/third_party/unacl-curve25519/core/cortex-m0/curve25519/mul.S
+++ b/third_party/unacl-curve25519/core/cortex-m0/curve25519/mul.S
@@ -1108,4 +1108,3 @@ multiply256x256_asm:
pop {r4-r7,pc}
bx lr
.size multiply256x256_asm, .-multiply256x256_asm
-
diff --git a/third_party/unacl-curve25519/core/cortex-m0/curve25519/reduce25519.S b/third_party/unacl-curve25519/core/cortex-m0/curve25519/reduce25519.S
index 9a3c29a0f6..73e613330f 100644
--- a/third_party/unacl-curve25519/core/cortex-m0/curve25519/reduce25519.S
+++ b/third_party/unacl-curve25519/core/cortex-m0/curve25519/reduce25519.S
@@ -160,4 +160,3 @@ fe25519_reduceTo256Bits_asm:
pop {r4,r5,r6,r7,r15}
.size fe25519_reduceTo256Bits_asm, .-fe25519_reduceTo256Bits_asm
-