Build brctl for Android

Test: build and run btcrl on device
Change-Id: Ib8116a39a7c54bd3aa53b1ad5e81651aee07a03a
This commit is contained in:
Keith Mok 2022-06-02 19:51:58 +00:00
parent cec40ac80c
commit 9432e9ec2e
3 changed files with 5 additions and 3 deletions

View File

@ -49,7 +49,7 @@ CONFIG_BLKDISCARD=y
CONFIG_BLKID=y
CONFIG_BLOCKDEV=y
# CONFIG_BOOTCHARTD is not set
# CONFIG_BRCTL is not set
CONFIG_BRCTL=y
# CONFIG_BUNZIP2 is not set
# CONFIG_BZCAT is not set
CONFIG_CAL=y

View File

@ -209,6 +209,7 @@ device_srcs = [
"toys/other/vconfig.c",
"toys/other/vmstat.c",
"toys/other/watch.c",
"toys/pending/brctl.c",
"toys/pending/getfattr.c",
"toys/pending/lsof.c",
"toys/pending/modprobe.c",
@ -245,6 +246,7 @@ toybox_symlinks = [
"base64",
"basename",
"blockdev",
"brctl",
"cal",
"cat",
"chattr",

View File

@ -72,8 +72,8 @@
#define USE_BLOCKDEV(...) __VA_ARGS__
#define CFG_BOOTCHARTD 0
#define USE_BOOTCHARTD(...)
#define CFG_BRCTL 0
#define USE_BRCTL(...)
#define CFG_BRCTL 1
#define USE_BRCTL(...) __VA_ARGS__
#define CFG_BUNZIP2 0
#define USE_BUNZIP2(...)
#define CFG_BZCAT 0