Skip to content

Commit fbb371f

Browse files
authored
Use fully-featured config file when the testsuite is enabled on the nuttx target. (#1219)
Using `.config.alloptions` since it contains all the features that IoT.js requires. Restored `.config.travis` to the original state (modified in #1207). IoT.js-DCO-1.0-Signed-off-by: Robert Sipka [email protected]
1 parent f4bb1a7 commit fbb371f

File tree

3 files changed

+30
-25
lines changed

3 files changed

+30
-25
lines changed

config/nuttx/stm32f4dis/.config.alloptions

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1181,7 +1181,7 @@ CONFIG_FAT_MAXFNAME=32
11811181
# CONFIG_FAT_DIRECT_RETRY is not set
11821182
# CONFIG_NFS is not set
11831183
# CONFIG_FS_NXFFS is not set
1184-
# CONFIG_FS_ROMFS is not set
1184+
CONFIG_FS_ROMFS=y
11851185
# CONFIG_FS_TMPFS is not set
11861186
# CONFIG_FS_SMARTFS is not set
11871187
# CONFIG_FS_BINFS is not set
@@ -1444,7 +1444,7 @@ CONFIG_NSH_LIBRARY=y
14441444
#
14451445
CONFIG_NSH_READLINE=y
14461446
# CONFIG_NSH_CLE is not set
1447-
CONFIG_NSH_LINELEN=64
1447+
CONFIG_NSH_LINELEN=128
14481448
# CONFIG_NSH_DISABLE_SEMICOLON is not set
14491449
CONFIG_NSH_CMDPARMS=y
14501450
CONFIG_NSH_MAXARGUMENTS=6
@@ -1527,6 +1527,19 @@ CONFIG_NSH_FILEIOSIZE=512
15271527
# CONFIG_NSH_DISABLESCRIPT is not set
15281528
# CONFIG_NSH_DISABLE_ITEF is not set
15291529
# CONFIG_NSH_DISABLE_LOOPS is not set
1530+
CONFIG_NSH_ROMFSETC=y
1531+
# CONFIG_NSH_ROMFSRC is not set
1532+
CONFIG_NSH_ROMFSMOUNTPT="/test"
1533+
CONFIG_NSH_INITSCRIPT="init.d/rcS"
1534+
CONFIG_NSH_ROMFSDEVNO=0
1535+
CONFIG_NSH_ROMFSSECTSIZE=64
1536+
CONFIG_NSH_DEFAULTROMFS=y
1537+
# CONFIG_NSH_ARCHROMFS is not set
1538+
# CONFIG_NSH_CUSTOMROMFS is not set
1539+
CONFIG_NSH_FATDEVNO=1
1540+
CONFIG_NSH_FATSECTSIZE=512
1541+
CONFIG_NSH_FATNSECTORS=1024
1542+
CONFIG_NSH_FATMOUNTPT="/tmp"
15301543

15311544
#
15321545
# Console Configuration

config/nuttx/stm32f4dis/.config.travis

Lines changed: 7 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -847,7 +847,7 @@ CONFIG_NETDEVICES=y
847847
#
848848
# CONFIG_NETDEV_LOOPBACK is not set
849849
# CONFIG_NETDEV_TELNET is not set
850-
CONFIG_NETDEV_MULTINIC=y
850+
# CONFIG_NETDEV_MULTINIC is not set
851851
# CONFIG_ARCH_HAVE_NETDEV_STATISTICS is not set
852852
CONFIG_NETDEV_LATEINIT=y
853853

@@ -1119,7 +1119,7 @@ CONFIG_FAT_MAXFNAME=32
11191119
# CONFIG_FAT_DMAMEMORY is not set
11201120
# CONFIG_FAT_DIRECT_RETRY is not set
11211121
# CONFIG_FS_NXFFS is not set
1122-
CONFIG_FS_ROMFS=y
1122+
# CONFIG_FS_ROMFS is not set
11231123
# CONFIG_FS_TMPFS is not set
11241124
# CONFIG_FS_SMARTFS is not set
11251125
# CONFIG_FS_BINFS is not set
@@ -1235,6 +1235,10 @@ CONFIG_HAVE_CXXINITIALIZE=y
12351235
# Application Configuration
12361236
#
12371237

1238+
#
1239+
# NxWidgets/NxWM
1240+
#
1241+
12381242
#
12391243
# Built-In Applications
12401244
#
@@ -1274,10 +1278,10 @@ CONFIG_BUILTIN_PROXY_STACKSIZE=1024
12741278
CONFIG_EXAMPLES_NSH=y
12751279
CONFIG_EXAMPLES_NSH_CXXINITIALIZE=y
12761280
# CONFIG_EXAMPLES_NULL is not set
1281+
# CONFIG_EXAMPLES_NX is not set
12771282
# CONFIG_EXAMPLES_NXFFS is not set
12781283
# CONFIG_EXAMPLES_NXHELLO is not set
12791284
# CONFIG_EXAMPLES_NXIMAGE is not set
1280-
# CONFIG_EXAMPLES_NX is not set
12811285
# CONFIG_EXAMPLES_NXLINES is not set
12821286
# CONFIG_EXAMPLES_NXTERM is not set
12831287
# CONFIG_EXAMPLES_NXTEXT is not set
@@ -1289,7 +1293,6 @@ CONFIG_EXAMPLES_NSH_CXXINITIALIZE=y
12891293
# CONFIG_EXAMPLES_PWM is not set
12901294
# CONFIG_EXAMPLES_RFID_READUID is not set
12911295
# CONFIG_EXAMPLES_RGBLED is not set
1292-
# CONFIG_EXAMPLES_ROMFS is not set
12931296
# CONFIG_EXAMPLES_SENDMAIL is not set
12941297
# CONFIG_EXAMPLES_SERIALBLASTER is not set
12951298
# CONFIG_EXAMPLES_SERIALRX is not set
@@ -1300,11 +1303,9 @@ CONFIG_EXAMPLES_NSH_CXXINITIALIZE=y
13001303
# CONFIG_EXAMPLES_SMP is not set
13011304
# CONFIG_EXAMPLES_TCPECHO is not set
13021305
# CONFIG_EXAMPLES_TELNETD is not set
1303-
# CONFIG_EXAMPLES_THTTPD is not set
13041306
# CONFIG_EXAMPLES_TIFF is not set
13051307
# CONFIG_EXAMPLES_TOUCHSCREEN is not set
13061308
# CONFIG_EXAMPLES_UDGRAM is not set
1307-
# CONFIG_EXAMPLES_UNIONFS is not set
13081309
# CONFIG_EXAMPLES_USBSERIAL is not set
13091310
# CONFIG_EXAMPLES_USBTERM is not set
13101311
# CONFIG_EXAMPLES_USTREAM is not set
@@ -1453,19 +1454,6 @@ CONFIG_NSH_FILEIOSIZE=512
14531454
# CONFIG_NSH_DISABLESCRIPT is not set
14541455
# CONFIG_NSH_DISABLE_ITEF is not set
14551456
# CONFIG_NSH_DISABLE_LOOPS is not set
1456-
CONFIG_NSH_ROMFSETC=y
1457-
# CONFIG_NSH_ROMFSRC is not set
1458-
CONFIG_NSH_ROMFSMOUNTPT="/test"
1459-
CONFIG_NSH_INITSCRIPT="init.d/rcS"
1460-
CONFIG_NSH_ROMFSDEVNO=0
1461-
CONFIG_NSH_ROMFSSECTSIZE=64
1462-
CONFIG_NSH_DEFAULTROMFS=y
1463-
# CONFIG_NSH_ARCHROMFS is not set
1464-
# CONFIG_NSH_CUSTOMROMFS is not set
1465-
CONFIG_NSH_FATDEVNO=1
1466-
CONFIG_NSH_FATSECTSIZE=512
1467-
CONFIG_NSH_FATNSECTORS=1024
1468-
CONFIG_NSH_FATMOUNTPT="/tmp"
14691457

14701458
#
14711459
# Console Configuration
@@ -1496,10 +1484,6 @@ CONFIG_NSH_MAX_ROUNDTRIP=20
14961484
# CONFIG_NSH_LOGIN is not set
14971485
# CONFIG_NSH_CONSOLE_LOGIN is not set
14981486

1499-
#
1500-
# NxWidgets/NxWM
1501-
#
1502-
15031487
#
15041488
# Platform-specific Support
15051489
#

tools/precommit.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,14 @@ def generate_nuttx_romfs(nuttx_root):
309309

310310
if option.enable_testsuite:
311311
generate_nuttx_romfs(nuttx_root)
312+
fs.chdir(fs.join(nuttx_root, 'nuttx'))
313+
fs.copy(fs.join(path.PROJECT_ROOT,
314+
'config',
315+
'nuttx',
316+
'stm32f4dis',
317+
'.config.alloptions'),
318+
'.config')
319+
fs.chdir(path.PROJECT_ROOT)
312320

313321
build_nuttx(nuttx_root, buildtype, 'context')
314322
build(buildtype, ['--target-arch=arm',

0 commit comments

Comments
 (0)