summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Lee <timlee660101@gmail.com>2024-06-03 05:55:55 +0300
committerTim Lee <chli30@nuvoton.com>2024-06-13 03:59:27 +0300
commit41c3c4ebabe36f3100f5d2dd96fd185ba085a83a (patch)
treea0c304ff067cba1e887d5b24a9548e9b2b9dbec2
parent3c4ec48c0bf1e5aaeb445dfa07e3dd9d73df51b7 (diff)
downloadopenbmc-41c3c4ebabe36f3100f5d2dd96fd185ba085a83a.tar.xz
meta-nuvoton: evb-npcm845: busybox: add opts for dd and head utility
Enable `CONFIG_FEATURE_DD_THIRD_STATUS_LINE` to get third status line. Enable `CONFIG_FEATURE_DD_IBS_OBS` for ibs=N obs=N option. `ibs` use to set input block size. `obs` use to set output block size. Enable `CONFIG_FEATURE_FANCY_HEAD` to add support "c:qv" opts `header_threshhold` and `count_bytes` for `head` utility. Tested: root@:~# dd if=/dev/mtdblock3 of=/dev/null ibs=4K obs=1K count=10240 2048+0 records in 8192+0 records out 8388608 bytes (8.0MB) copied, 10.029590 seconds, 816.8KB/s Signed-off-by: Tim Lee <timlee660101@gmail.com> Change-Id: Idf6c8db081306c98d6ea3c5c5175986bd52ea7bc
-rw-r--r--meta-nuvoton/meta-evb-npcm845/recipes-core/busybox/busybox_%.bbappend2
-rw-r--r--meta-nuvoton/meta-evb-npcm845/recipes-core/busybox/dd.cfg2
-rw-r--r--meta-nuvoton/meta-evb-npcm845/recipes-core/busybox/head.cfg1
3 files changed, 5 insertions, 0 deletions
diff --git a/meta-nuvoton/meta-evb-npcm845/recipes-core/busybox/busybox_%.bbappend b/meta-nuvoton/meta-evb-npcm845/recipes-core/busybox/busybox_%.bbappend
index b103c1a1a6..7a905cf8b5 100644
--- a/meta-nuvoton/meta-evb-npcm845/recipes-core/busybox/busybox_%.bbappend
+++ b/meta-nuvoton/meta-evb-npcm845/recipes-core/busybox/busybox_%.bbappend
@@ -2,3 +2,5 @@ FILESEXTRAPATHS:prepend:evb-npcm845 := "${THISDIR}/${PN}:"
SRC_URI:append:evb-npcm845 = " file://lsusb.cfg"
SRC_URI:append:evb-npcm845 = " file://timeout.cfg"
+SRC_URI:append:evb-npcm845 = " file://dd.cfg"
+SRC_URI:append:evb-npcm845 = " file://head.cfg"
diff --git a/meta-nuvoton/meta-evb-npcm845/recipes-core/busybox/dd.cfg b/meta-nuvoton/meta-evb-npcm845/recipes-core/busybox/dd.cfg
new file mode 100644
index 0000000000..f52accc509
--- /dev/null
+++ b/meta-nuvoton/meta-evb-npcm845/recipes-core/busybox/dd.cfg
@@ -0,0 +1,2 @@
+CONFIG_FEATURE_DD_THIRD_STATUS_LINE=y
+CONFIG_FEATURE_DD_IBS_OBS=y
diff --git a/meta-nuvoton/meta-evb-npcm845/recipes-core/busybox/head.cfg b/meta-nuvoton/meta-evb-npcm845/recipes-core/busybox/head.cfg
new file mode 100644
index 0000000000..16017ea486
--- /dev/null
+++ b/meta-nuvoton/meta-evb-npcm845/recipes-core/busybox/head.cfg
@@ -0,0 +1 @@
+CONFIG_FEATURE_FANCY_HEAD=y