代码拉取完成,页面将自动刷新
同步操作将从 OpenHarmony/third_party_toybox 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
# Copyright (c) Huawei Technologies Co., Ltd. 2020. All rights reserved.
# Must do steps below manually after getting the sources code
# from official website:
# 1. make defconfig or make menuconfig
# ==> To generate .config file.
# 2. NOBUILD=1 scripts/make.sh
# ==> To generate neccesary files like heades in generated
# direcotory.
# To add a toy:
# 1. Edit .config to enable the toy you want to add.
# 2. Edit toybox'sources below if neccesary.
# e. Add th toy to the symlinks.
import("//build/lite/config/component/lite_component.gni")
lite_component("toybox") {
features = [ ":toybox-0.8.2" ]
}
executable("toybox-0.8.2") {
output_name = "toybox"
# from middleware file build.sh
sources = [
"lib/args.c",
"lib/commas.c",
"lib/deflate.c",
"lib/dirtree.c",
"lib/env.c",
"lib/help.c",
"lib/lib.c",
"lib/linestack.c",
"lib/llist.c",
"lib/net.c",
"lib/password.c",
"lib/portability.c",
"lib/tty.c",
"lib/xwrap.c",
"main.c",
"toys/lsb/dmesg.c",
"toys/lsb/gzip.c",
"toys/lsb/hostname.c",
"toys/lsb/killall.c",
"toys/lsb/md5sum.c",
"toys/lsb/mknod.c",
"toys/lsb/mktemp.c",
"toys/lsb/mount.c",
"toys/lsb/passwd.c",
"toys/lsb/pidof.c",
"toys/lsb/seq.c",
"toys/lsb/su.c",
"toys/lsb/sync.c",
"toys/lsb/umount.c",
"toys/net/ftpget.c",
"toys/net/ifconfig.c",
"toys/net/microcom.c",
"toys/net/netcat.c",
"toys/net/netstat.c",
"toys/net/ping.c",
"toys/net/rfkill.c",
"toys/net/sntp.c",
"toys/net/tunctl.c",
"toys/other/acpi.c",
"toys/other/ascii.c",
"toys/other/base64.c",
"toys/other/blkid.c",
"toys/other/blockdev.c",
"toys/other/bzcat.c",
"toys/other/chroot.c",
"toys/other/chrt.c",
"toys/other/chvt.c",
"toys/other/clear.c",
"toys/other/count.c",
"toys/other/devmem.c",
"toys/other/dos2unix.c",
"toys/other/eject.c",
"toys/other/factor.c",
"toys/other/fallocate.c",
"toys/other/flock.c",
"toys/other/fmt.c",
"toys/other/free.c",
"toys/other/freeramdisk.c",
"toys/other/fsfreeze.c",
"toys/other/fsync.c",
"toys/other/help.c",
"toys/other/hexedit.c",
"toys/other/hwclock.c",
"toys/other/i2ctools.c",
"toys/other/inotifyd.c",
"toys/other/insmod.c",
"toys/other/ionice.c",
"toys/other/login.c",
"toys/other/losetup.c",
"toys/other/lsattr.c",
"toys/other/lsmod.c",
"toys/other/lspci.c",
"toys/other/lsusb.c",
"toys/other/makedevs.c",
"toys/other/mcookie.c",
"toys/other/mix.c",
"toys/other/mkpasswd.c",
"toys/other/mkswap.c",
"toys/other/modinfo.c",
"toys/other/mountpoint.c",
"toys/other/nbd_client.c",
"toys/other/nsenter.c",
"toys/other/oneit.c",
"toys/other/partprobe.c",
"toys/other/pivot_root.c",
"toys/other/pmap.c",
"toys/other/printenv.c",
"toys/other/pwdx.c",
"toys/other/readahead.c",
"toys/other/readlink.c",
"toys/other/realpath.c",
"toys/other/reboot.c",
"toys/other/reset.c",
"toys/other/rev.c",
"toys/other/rmmod.c",
"toys/other/setfattr.c",
"toys/other/setsid.c",
"toys/other/shred.c",
"toys/other/stat.c",
"toys/other/swapoff.c",
"toys/other/swapon.c",
"toys/other/switch_root.c",
"toys/other/sysctl.c",
"toys/other/tac.c",
"toys/other/taskset.c",
"toys/other/timeout.c",
"toys/other/truncate.c",
"toys/other/uptime.c",
"toys/other/usleep.c",
"toys/other/uuidgen.c",
"toys/other/vconfig.c",
"toys/other/vmstat.c",
"toys/other/w.c",
"toys/other/watch.c",
"toys/other/which.c",
"toys/other/xxd.c",
"toys/other/yes.c",
"toys/pending/bootchartd.c",
"toys/pending/diff.c",
"toys/pending/getty.c",
"toys/pending/more.c",
"toys/posix/basename.c",
"toys/posix/cal.c",
"toys/posix/cat.c",
"toys/posix/chgrp.c",
"toys/posix/chmod.c",
"toys/posix/cksum.c",
"toys/posix/cmp.c",
"toys/posix/comm.c",
"toys/posix/cp.c",
"toys/posix/cpio.c",
"toys/posix/cut.c",
"toys/posix/date.c",
"toys/posix/df.c",
"toys/posix/dirname.c",
"toys/posix/du.c",
"toys/posix/echo.c",
"toys/posix/env.c",
"toys/posix/expand.c",
"toys/posix/false.c",
"toys/posix/file.c",
"toys/posix/find.c",
"toys/posix/getconf.c",
"toys/posix/grep.c",
"toys/posix/head.c",
"toys/posix/iconv.c",
"toys/posix/id.c",
"toys/posix/kill.c",
"toys/posix/link.c",
"toys/posix/ln.c",
"toys/posix/logger.c",
"toys/posix/ls.c",
"toys/posix/mkdir.c",
"toys/posix/mkfifo.c",
"toys/posix/nice.c",
"toys/posix/nl.c",
"toys/posix/nohup.c",
"toys/posix/od.c",
"toys/posix/paste.c",
"toys/posix/patch.c",
"toys/posix/printf.c",
"toys/posix/ps.c",
"toys/posix/pwd.c",
"toys/posix/renice.c",
"toys/posix/rm.c",
"toys/posix/rmdir.c",
"toys/posix/sed.c",
"toys/posix/sleep.c",
"toys/posix/sort.c",
"toys/posix/split.c",
"toys/posix/strings.c",
"toys/posix/tail.c",
"toys/posix/tar.c",
"toys/posix/tee.c",
"toys/posix/test.c",
"toys/posix/time.c",
"toys/posix/touch.c",
"toys/posix/true.c",
"toys/posix/tty.c",
"toys/posix/ulimit.c",
"toys/posix/uname.c",
"toys/posix/uniq.c",
"toys/posix/unlink.c",
"toys/posix/uudecode.c",
"toys/posix/uuencode.c",
"toys/posix/wc.c",
"toys/posix/who.c",
"toys/posix/xargs.c",
]
include_dirs = [ "./" ]
defines = [ "_DEFAULT_SOURCE" ]
configs -= [ "//build/lite/config:language_c" ]
cflags_c = [
"-std=gnu11",
"-Wall",
"-Wundef",
"-Wno-char-subscripts",
"-Wno-implicit-function-declaration",
"-Wno-unused-variable",
"-Wno-unused-value",
"-Wno-incompatible-pointer-types",
"-Wno-int-conversion",
"-Wno-sign-compare",
"-Wno-format",
"-Wno-unused-result",
"-Os",
"-ffunction-sections",
"-fdata-sections",
"-fno-asynchronous-unwind-tables",
"-fPIE",
"-funsigned-char",
]
ldflags = [
"-pie",
"-Wl,-z,relro",
"-Wl,-z,now",
"-Wl,-z,noexecstack",
"-lm",
"-lcrypt",
]
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。