]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
runqemu: add process of option QB_NFSROOTFS_EXTRA_OPT
authorXiangyu Chen <xiangyu.chen@windriver.com>
Tue, 17 Jan 2023 02:05:03 +0000 (10:05 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 26 Jan 2023 22:22:37 +0000 (22:22 +0000)
commit43a97f5bf3f90c5c1fd603f7dca2b3db2c0e3040
tree6c4e0ab60ef7b27f2ad67db89b68b042acfbe3a3
parenta255a7f350b558445f4f6c29f60e77c33883b08a
runqemu: add process of option QB_NFSROOTFS_EXTRA_OPT

This extra options to be appended to the nfs rootfs options in kernel
boot arg.

Example config with qemuppc64 in machine config:

add r/w size in the nfs rootfs extra option:
QB_NFSROOTFS_EXTRA_OPT = "wsize=524288,rsize=524288"

re-build and runqemu with nfs again, we can observe the kernel command
line added our defined value in QB_NFSROOTFS_EXTRA_OPT:

Kernel command line: root=/dev/nfs nfsroot=10.0.2.2:/home/xchen5/testing/build/tmp-glibc/deploy/images/qemuppc64/testnfs,nfsvers=3,port=3049,tcp,mountport=3048,wsize=524288,rsize=524288 rw  mem=256M ip=dhcp console=hvc0 console=hvc0 nohugevmalloc

Signed-off-by: Xiangyu Chen <xiangyu.chen@windriver.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
scripts/runqemu