You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -325,6 +341,8 @@ so what other options are missing from `gem5_defconfig`? The failing dmesg is:
325
341
[ 0.121197] hdlcd: probe of 2b000000.hdlcd failed with error -12
326
342
....
327
343
344
+
So what other options are missing from `gem5_defconfig`? It would be cool to minimize it out to better understand the options.
345
+
328
346
=== Automatic startup commands
329
347
330
348
When debugging a module, it becomes tedious to wait for build and re-type:
@@ -2222,7 +2240,7 @@ TODO we were not able to get it working yet: https://stackoverflow.com/questions
2222
2240
2223
2241
=== Linux kernel configuration
2224
2242
2225
-
==== Use your own kernel config
2243
+
==== Modify kernel config options
2226
2244
2227
2245
By default, we use a `.config` that is a mixture of:
2228
2246
@@ -2237,14 +2255,24 @@ If you want to just use your own exact `.config` instead, do:
2237
2255
2238
2256
Beware that Buildroot can `sed` override some of the configurations we make no matter what, e.g. it forces `CONFIG_BLK_DEV_INITRD=y` when `BR2_TARGET_ROOTFS_CPIO` is on, so you might want to double check as explained at <<find-the-kernel-config>>. TODO check if there is a way to prevent that patching and maybe patch Buildroot for it, it is too fuzzy. People should be able to just build with whatever `.config` they want.
2239
2257
2240
-
==== Modify a config option
2258
+
Modify a single option:
2259
+
2260
+
....
2261
+
./build -C 'CONFIG_FORTIFY_SOURCE=y' -l
2262
+
....
2241
2263
2242
-
Only effective for the current build:
2264
+
Use an extra kernel config fragment file:
2243
2265
2244
2266
....
2245
-
./build -c 'CONFIG_FORTIFY_SOURCE=y' -l
2267
+
printf '
2268
+
CONFIG_IKCONFIG=y
2269
+
CONFIG_IKCONFIG_PROC=y
2270
+
' > myconfig
2271
+
./build -c 'myconfig' -l
2246
2272
....
2247
2273
2274
+
`-K`, `-c`, `-C` can all be used at the same time. Options passed via `-C` take precedence over `-c`, which takes precedence over `-K`.
2275
+
2248
2276
==== Find the kernel config
2249
2277
2250
2278
Ge the build config in guest:
@@ -3003,7 +3031,7 @@ TODO: can you get function arguments? https://stackoverflow.com/questions/276087
0 commit comments