[riot-notifications] [RIOT-OS/RIOT] cpu/native: Add native mtd kconfig dep (#16551)

Leandro Lanzieri notifications at github.com
Fri Jun 18 11:39:08 CEST 2021


As the test application is not in the murdock list yet, I added it locally (should we add it now or do we leave it for #16487 ?). The output shows that now both binaries work with the PR.

Change in `.murdock`:
```diff
diff --git a/.murdock b/.murdock
index acb1356065..53ca46c81f 100755
--- a/.murdock
+++ b/.murdock
@@ -26,6 +26,7 @@ tests/driver_r* tests/driver_s* tests/driver_t* tests/driver_u*
 tests/driver_v*"}
 : ${TEST_KCONFIG_native:="examples/hello-world
 tests/cb_mux*
+tests/mtd_flashpage
 tests/congure_*
 tests/driver_ws281x
 tests/eepreg
````

Command: `bin/bash -c "source .murdock; JOBS=4 compile tests/mtd_flashpage native:gnu"`

<details>
<summary><b>Output with this PR</b></summary>

```
make: Entering directory '/home/leandro/Work/RIOT/tests/mtd_flashpage'
make: Leaving directory '/home/leandro/Work/RIOT/tests/mtd_flashpage'
make: Entering directory '/home/leandro/Work/RIOT/tests/mtd_flashpage'
=== [ATTENTION] Testing Kconfig dependency modelling ===
=== [ATTENTION] Testing Kconfig dependency modelling ===
Building application "tests_mtd_flashpage" for "native" with MCU "native".

/usr/bin/ld: /home/leandro/Work/RIOT/build/cpu/tramp.o: warning: relocation against `_native_saved_eip' in read-only section `.text'
/usr/bin/ld: warning: creating DT_TEXTREL in a PIE
sha1sum /home/leandro/Work/RIOT/tests/mtd_flashpage/tests/01-run.py /home/leandro/Work/RIOT/build/tests_mtd_flashpage.elf > /home/leandro/Work/RIOT/build/test-input-hash.sha1
   text	  data	   bss	   dec	   hex	filename
  41687	   880	 65548	108115	 1a653	/home/leandro/Work/RIOT/build/tests_mtd_flashpage.elf
make: Leaving directory '/home/leandro/Work/RIOT/tests/mtd_flashpage'
make: Entering directory '/home/leandro/Work/RIOT/tests/mtd_flashpage'
Building application "tests_mtd_flashpage" for "native" with MCU "native".

/usr/bin/ld: /home/leandro/Work/RIOT/build/cpu/tramp.o: warning: relocation against `_native_saved_eip' in read-only section `.text'
/usr/bin/ld: warning: creating DT_TEXTREL in a PIE
sha1sum /home/leandro/Work/RIOT/tests/mtd_flashpage/tests/01-run.py /home/leandro/Work/RIOT/build/tests_mtd_flashpage.elf > /home/leandro/Work/RIOT/build/test-input-hash.sha1
   text	  data	   bss	   dec	   hex	filename
  41687	   880	 65548	108115	 1a653	/home/leandro/Work/RIOT/build/tests_mtd_flashpage.elf
make: Leaving directory '/home/leandro/Work/RIOT/tests/mtd_flashpage'
make: Entering directory '/home/leandro/Work/RIOT/tests/mtd_flashpage'
r
/home/leandro/Work/RIOT/build/tests_mtd_flashpage.elf /dev/ttyACM0 
RIOT native interrupts/signals initialized.
LED_RED_OFF
LED_GREEN_ON
RIOT native board initialized.
RIOT native hardware initialization complete.

Help: Press s to start test, r to print it is ready
READY
s
START
main(): This is RIOT! (Version: buildtest)
....
OK (4 tests)

make: Leaving directory '/home/leandro/Work/RIOT/tests/mtd_flashpage'
-- build directory size: 1,2M
```
</details>

<details>
<summary><b>Output on master</b></summary>

```
make: Entering directory '/home/leandro/Work/RIOT/tests/mtd_flashpage'
make: Leaving directory '/home/leandro/Work/RIOT/tests/mtd_flashpage'
make: Entering directory '/home/leandro/Work/RIOT/tests/mtd_flashpage'
=== [ATTENTION] Testing Kconfig dependency modelling ===
=== [ATTENTION] Testing Kconfig dependency modelling ===
Building application "tests_mtd_flashpage" for "native" with MCU "native".

/usr/bin/ld: /home/leandro/Work/RIOT/build/cpu/tramp.o: warning: relocation against `_native_saved_eip' in read-only section `.text'
/usr/bin/ld: warning: creating DT_TEXTREL in a PIE
sha1sum /home/leandro/Work/RIOT/tests/mtd_flashpage/tests/01-run.py /home/leandro/Work/RIOT/build/tests_mtd_flashpage.elf > /home/leandro/Work/RIOT/build/test-input-hash.sha1
   text	  data	   bss	   dec	   hex	filename
  39487	   792	 65548	105827	 19d63	/home/leandro/Work/RIOT/build/tests_mtd_flashpage.elf
make: Leaving directory '/home/leandro/Work/RIOT/tests/mtd_flashpage'
make: Entering directory '/home/leandro/Work/RIOT/tests/mtd_flashpage'
Building application "tests_mtd_flashpage" for "native" with MCU "native".

/usr/bin/ld: /home/leandro/Work/RIOT/build/cpu/tramp.o: warning: relocation against `_native_saved_eip' in read-only section `.text'
/usr/bin/ld: warning: creating DT_TEXTREL in a PIE
sha1sum /home/leandro/Work/RIOT/tests/mtd_flashpage/tests/01-run.py /home/leandro/Work/RIOT/build/tests_mtd_flashpage.elf > /home/leandro/Work/RIOT/build/test-input-hash.sha1
   text	  data	   bss	   dec	   hex	filename
  41687	   880	 65548	108115	 1a653	/home/leandro/Work/RIOT/build/tests_mtd_flashpage.elf
make: Leaving directory '/home/leandro/Work/RIOT/tests/mtd_flashpage'
Hashes of binaries with and without Kconfig mismatch for tests/mtd_flashpage
Please check that all used modules are modelled in Kconfig and enabled
-- build directory size: 1,2M
```
</details>

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/16551#issuecomment-863905485
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210618/36c8ce46/attachment.htm>


More information about the notifications mailing list