Skip to content

Commit 024f7f3

Browse files
committed
lr1110: use patch -p0
1 parent fcdfb5b commit 024f7f3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lr1110/Makefile.setup

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,19 @@ all: $(LR1110_DIR)/wifi_helpers.c $(LR1110_DIR)/smtc_modem.c $(LR1110_DIR)/radio
1313
# in the seeed library.
1414
$(LR1110_DIR)/wifi_helpers.c: $(SEEED_DIR)/smtc_hal/smtc_modem_hal.c
1515
cp $(LR1110_DIR)/seeed/geolocation_middleware/wifi/src/wifi_helpers.c $(LR1110_DIR)/wifi_helpers.c
16-
cd $(LR1110_DIR); patch -p1 < ../wifi_helpers.patch
16+
cd $(LR1110_DIR); patch -p0 < ../wifi_helpers.patch
1717

1818
# Apply patch to smtc_modem.c and use that version instead of what is provided
1919
# in the seeed library.
2020
$(LR1110_DIR)/smtc_modem.c: $(SEEED_DIR)/smtc_hal/smtc_modem_hal.c
2121
cp $(LR1110_DIR)/seeed/lora_basics_modem/smtc_modem_core/modem_core/smtc_modem.c $(LR1110_DIR)/smtc_modem.c
22-
cd $(LR1110_DIR); patch -p1 < ../smtc_modem.patch
22+
cd $(LR1110_DIR); patch -p0 < ../smtc_modem.patch
2323

2424
# Apply patch to radio_planner.c and use that version instead of what is provided
2525
# in the seeed library.
2626
$(LR1110_DIR)/radio_planner.c: $(SEEED_DIR)/smtc_hal/smtc_modem_hal.c
2727
cp $(LR1110_DIR)/seeed/lora_basics_modem/smtc_modem_core/radio_planner/src/radio_planner.c $(LR1110_DIR)/radio_planner.c
28-
cd $(LR1110_DIR); patch -p1 < ../radio_planner.patch
28+
cd $(LR1110_DIR); patch -p0 < ../radio_planner.patch
2929

3030
$(SEEED_DIR)/smtc_hal/smtc_modem_hal.c:
3131
curl -L --output $(ZIP_FILE) "https://codeload.github.com/Seeed-Studio/Seeed_Wio_WM1110_Dev_Board/zip/$(VERSION_HASH)"

0 commit comments

Comments
 (0)