Skip to content

Commit 9751d7c

Browse files
authored
Don't include timestamps in patches. (#49)
1 parent 4be944f commit 9751d7c

File tree

12 files changed

+30
-21
lines changed

12 files changed

+30
-21
lines changed

Makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ else
1212
EXE_SUFFIX :=
1313
endif
1414

15+
# Set to '--update-patches' to update all patches.
16+
UPDATE_PATCHES :=
17+
1518
TOIT_EXEC := toit.run$(EXE_SUFFIX)
1619

1720
TOIT_DIRECTORY := toit
@@ -63,8 +66,13 @@ synthesize-all: | create-build-directory create-synthesized-directory
6366
--output-root="$(SYNTHESIZED_DIRECTORY)" \
6467
--sdk-path="$(TOIT_SDK_DIRECTORY)" \
6568
--variants-root="$(VARIANTS_DIRECTORY)" \
69+
$(UPDATE_PATCHES) \
6670
$(shell $(TOOL_RUN) list variants)
6771

72+
.PHONY: update-patches
73+
update-patches:
74+
$(MAKE) UPDATE_PATCHES=--update-patches synthesize-all
75+
6876
.PHONY: create-build-directory
6977
create-build-directory:
7078
mkdir -p "$(BUILD_DIRECTORY)"

tools/main.toit

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,8 @@ apply-file-patch_ --patch-path/string --file-path/string:
245245
update-patch_ --from/string --to/string --output/string --ui/cli.Ui:
246246
ui.print "Updating $output."
247247
file.delete output
248-
args := ["diff", "-aur", from, to]
248+
// Use labels to avoid the timestamp.
249+
args := ["diff", "-aur", "--label", from, "--label", to, from, to]
249250
stream := pipe-from args
250251
out-stream := file.Stream.for-write output
251252
writer := out-stream.out

variants/esp32-consibio/sdkconfig.defaults.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
--- toolchains/esp32/sdkconfig.defaults 2023-11-08 17:26:23.596513658 +0100
2-
+++ toolchains/esp32-consibio/sdkconfig.defaults 2023-11-20 17:43:10.470183258 +0100
1+
--- toit/toolchains/esp32/sdkconfig.defaults
2+
+++ synthesized/esp32-consibio/sdkconfig.defaults
33
@@ -5,27 +5,10 @@
44
CONFIG_BOOTLOADER_APP_ROLLBACK_ENABLE=y
55
CONFIG_BOOTLOADER_SKIP_VALIDATE_IN_DEEP_SLEEP=y

variants/esp32-eth-clk-out0-spiram/sdkconfig.defaults.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
--- /home/flo/code/envelopes/../opentoit/toolchains/esp32/sdkconfig.defaults 2023-11-07 13:46:26.856085190 +0100
2-
+++ synthesized/esp32-eth-clk-out0-spiram/sdkconfig.defaults 2023-11-07 13:48:07.897724651 +0100
1+
--- toit/toolchains/esp32/sdkconfig.defaults
2+
+++ synthesized/esp32-eth-clk-out0-spiram/sdkconfig.defaults
33
@@ -31,12 +31,17 @@
44
# CONFIG_SPI_SLAVE_ISR_IN_IRAM is not set
55
CONFIG_UART_ISR_IN_IRAM=y

variants/esp32-eth-clk-out0/sdkconfig.defaults.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
--- /home/flo/code/envelopes/../opentoit/toolchains/esp32/sdkconfig.defaults 2023-11-07 13:46:26.856085190 +0100
2-
+++ synthesized/esp32-eth-clk-out0/sdkconfig.defaults 2023-11-07 13:48:07.871058431 +0100
1+
--- toit/toolchains/esp32/sdkconfig.defaults
2+
+++ synthesized/esp32-eth-clk-out0/sdkconfig.defaults
33
@@ -31,6 +31,8 @@
44
# CONFIG_SPI_SLAVE_ISR_IN_IRAM is not set
55
CONFIG_UART_ISR_IN_IRAM=y

variants/esp32-eth-clk-out17-spiram/sdkconfig.defaults.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
--- /home/flo/code/envelopes/../opentoit/toolchains/esp32/sdkconfig.defaults 2023-11-07 13:46:26.856085190 +0100
2-
+++ synthesized/esp32-eth-clk-out17-spiram/sdkconfig.defaults 2023-11-07 13:48:07.821059269 +0100
1+
--- toit/toolchains/esp32/sdkconfig.defaults
2+
+++ synthesized/esp32-eth-clk-out17-spiram/sdkconfig.defaults
33
@@ -31,12 +31,16 @@
44
# CONFIG_SPI_SLAVE_ISR_IN_IRAM is not set
55
CONFIG_UART_ISR_IN_IRAM=y

variants/esp32-eth-clk-out17/sdkconfig.defaults.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
--- /home/flo/code/envelopes/../opentoit/toolchains/esp32/sdkconfig.defaults 2023-11-07 13:46:26.856085190 +0100
2-
+++ synthesized/esp32-eth-clk-out17/sdkconfig.defaults 2023-11-07 13:48:07.807726160 +0100
1+
--- toit/toolchains/esp32/sdkconfig.defaults
2+
+++ synthesized/esp32-eth-clk-out17/sdkconfig.defaults
33
@@ -31,6 +31,7 @@
44
# CONFIG_SPI_SLAVE_ISR_IN_IRAM is not set
55
CONFIG_UART_ISR_IN_IRAM=y

variants/esp32-no-ble/sdkconfig.defaults.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
--- /home/flo/code/envelopes/../opentoit/toolchains/esp32/sdkconfig.defaults 2023-11-07 13:46:26.856085190 +0100
2-
+++ synthesized/esp32-no-ble/sdkconfig.defaults 2023-11-07 13:48:07.911057760 +0100
1+
--- toit/toolchains/esp32/sdkconfig.defaults
2+
+++ synthesized/esp32-no-ble/sdkconfig.defaults
33
@@ -9,23 +9,6 @@
44
CONFIG_PARTITION_TABLE_CUSTOM=y
55
CONFIG_COMPILER_OPTIMIZATION_SIZE=y

variants/esp32-qemu/sdkconfig.defaults.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
--- /home/flo/code/envelopes/../opentoit/toolchains/esp32/sdkconfig.defaults 2023-11-07 13:46:26.856085190 +0100
2-
+++ synthesized/esp32-qemu/sdkconfig.defaults 2023-11-07 13:48:07.847725489 +0100
1+
--- toit/toolchains/esp32/sdkconfig.defaults
2+
+++ synthesized/esp32-qemu/sdkconfig.defaults
33
@@ -33,6 +33,7 @@
44
# CONFIG_ESP_ERR_TO_NAME_LOOKUP is not set
55
CONFIG_ETH_SPI_ETHERNET_DM9051=y

variants/esp32-sedisto/sdkconfig.defaults.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
+--- toolchains/esp32/sdkconfig.defaults 2024-02-14 13:01:21.464253095 +0100
2-
++++ toolchains/esp32-sedisto/sdkconfig.defaults 2024-02-14 13:02:23.710920353 +0100
1+
--- toit/toolchains/esp32/sdkconfig.defaults
2+
+++ synthesized/esp32-sedisto/sdkconfig.defaults
33
@@ -31,12 +31,17 @@
44
# CONFIG_SPI_SLAVE_ISR_IN_IRAM is not set
55
CONFIG_UART_ISR_IN_IRAM=y

0 commit comments

Comments
 (0)