Skip to content

Commit 2c34b06

Browse files
tmon-nordicalayander
authored andcommitted
tests: usb: fix build all test on qemu_cortex_m3
Reduce RAM disk size from 192 sectors down to 1 sector to solve linking issue due to qemu_cortex_m3 target having too little RAM. The RAM disk size does not really matter in this test case and should be as small as possible. Enable test random generator to solve missing sys_rand_get() required by networking subsystem. Signed-off-by: Tomasz Moń <[email protected]>
1 parent 21be6a2 commit 2c34b06

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

tests/subsys/usb/device_next/build_all.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,5 @@ CONFIG_USBD_BT_HCI=y
2929

3030
CONFIG_UHC_DRIVER=y
3131
CONFIG_USB_HOST_STACK=y
32+
33+
CONFIG_TEST_RANDOM_GENERATOR=y

tests/subsys/usb/device_next/build_all.overlay

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
compatible = "zephyr,ram-disk";
4949
disk-name = "RAM";
5050
sector-size = <512>;
51-
sector-count = <192>;
51+
sector-count = <1>;
5252
};
5353

5454
cdc_ecm_eth0: cdc_ecm_eth0 {

0 commit comments

Comments
 (0)