您尚未登录。

楼主 #1 2020-08-08 12:36:37

小果果
会员
注册时间: 2020-05-10
已发帖子: 61
积分: 58.5

buildroot编译后出现奇怪的信息

echo "buildroot" > /home/xiaoguoguo/buildroot-2017.08/output/target/etc/hostname
/bin/sed -i -e '$a \127.0.1.1\tbuildroot' -e '/^127.0.1.1/d' /home/xiaoguoguo/buildroot-2017.08/output/target/etc/hosts
mkdir -p /home/xiaoguoguo/buildroot-2017.08/output/target/etc
echo "Welcome to Buildroot" > /home/xiaoguoguo/buildroot-2017.08/output/target/etc/issue
/bin/sed -i -e s,^root:[^:]*:,root::, /home/xiaoguoguo/buildroot-2017.08/output/target/etc/shadow
rm -f /home/xiaoguoguo/buildroot-2017.08/output/build/locales.nopurge
for i in C en_US locale-archive; do echo $i >> /home/xiaoguoguo/buildroot-2017.08/output/build/locales.nopurge; done
for dir in ; do for langdir in $dir/*; do if [ -e "${langdir}" ]; then grep -qx "${langdir##*/}" /home/xiaoguoguo/buildroot-2017.08/output/build/locales.nopurge || rm -rf $langdir; fi done; done
if [ -d /home/xiaoguoguo/buildroot-2017.08/output/target/usr/share/X11/locale ]; then for lang in C en_US; do if [ -f /home/xiaoguoguo/buildroot-2017.08/output/target/usr/share/X11/locale/$lang/XLC_LOCALE ]; then echo "$lang/XLC_LOCALE: $lang"; fi done > /home/xiaoguoguo/buildroot-2017.08/output/target/usr/share/X11/locale/locale.dir; fi
rm -rf /home/xiaoguoguo/buildroot-2017.08/output/target/usr/include /home/xiaoguoguo/buildroot-2017.08/output/target/usr/share/aclocal \
        /home/xiaoguoguo/buildroot-2017.08/output/target/usr/lib/pkgconfig /home/xiaoguoguo/buildroot-2017.08/output/target/usr/share/pkgconfig \
        /home/xiaoguoguo/buildroot-2017.08/output/target/usr/lib/cmake /home/xiaoguoguo/buildroot-2017.08/output/target/usr/share/cmake
find /home/xiaoguoguo/buildroot-2017.08/output/target/usr/{lib,share}/ -name '*.cmake' -print0 | xargs -0 rm -f
find /home/xiaoguoguo/buildroot-2017.08/output/target/lib/ /home/xiaoguoguo/buildroot-2017.08/output/target/usr/lib/ /home/xiaoguoguo/buildroot-2017.08/output/target/usr/libexec/ \
        \( -name '*.a' -o -name '*.la' \) -print0 | xargs -0 rm -f
find: `/home/xiaoguoguo/buildroot-2017.08/output/target/usr/libexec/': 没有那个文件或目录
rm -rf /home/xiaoguoguo/buildroot-2017.08/output/target/usr/share/gdb
rm -rf /home/xiaoguoguo/buildroot-2017.08/output/target/usr/share/bash-completion
rm -rf /home/xiaoguoguo/buildroot-2017.08/output/target/usr/share/zsh
rm -rf /home/xiaoguoguo/buildroot-2017.08/output/target/usr/man /home/xiaoguoguo/buildroot-2017.08/output/target/usr/share/man
rm -rf /home/xiaoguoguo/buildroot-2017.08/output/target/usr/info /home/xiaoguoguo/buildroot-2017.08/output/target/usr/share/info
rm -rf /home/xiaoguoguo/buildroot-2017.08/output/target/usr/doc /home/xiaoguoguo/buildroot-2017.08/output/target/usr/share/doc
rm -rf /home/xiaoguoguo/buildroot-2017.08/output/target/usr/share/gtk-doc
rmdir /home/xiaoguoguo/buildroot-2017.08/output/target/usr/share 2>/dev/null || true
find /home/xiaoguoguo/buildroot-2017.08/output/target -type f \( -perm /111 -o -name '*.so*' \) -not \( -name 'libpthread*.so*' -o -name 'ld-*.so*' -o -name '*.ko' \) -print0 | xargs -0 /home/xiaoguoguo/buildroot-2017.08/output/host/bin/arm-buildroot-linux-uclibcgnueabi-strip --remove-section=.comment --remove-section=.note 2>/dev/null || true
find /home/xiaoguoguo/buildroot-2017.08/output/target/lib/ -type f -name 'libpthread*.so*' | \
        xargs -r /home/xiaoguoguo/buildroot-2017.08/output/host/bin/arm-buildroot-linux-uclibcgnueabi-strip --remove-section=.comment --remove-section=.note --strip-debug
find /home/xiaoguoguo/buildroot-2017.08/output/target/lib/ -type f -name 'ld-*.so*' | \
        xargs -r /home/xiaoguoguo/buildroot-2017.08/output/host/bin/arm-buildroot-linux-uclibcgnueabi-strip --remove-section=.comment --remove-section=.note --strip-debug
test -f /home/xiaoguoguo/buildroot-2017.08/output/target/etc/ld.so.conf && \
        { echo "ERROR: we shouldn't have a /etc/ld.so.conf file"; exit 1; } || true
test -d /home/xiaoguoguo/buildroot-2017.08/output/target/etc/ld.so.conf.d && \
        { echo "ERROR: we shouldn't have a /etc/ld.so.conf.d directory"; exit 1; } || true
mkdir -p /home/xiaoguoguo/buildroot-2017.08/output/target/etc
( \
        echo "NAME=Buildroot"; \
        echo "VERSION=2017.08"; \
        echo "ID=buildroot"; \
        echo "VERSION_ID=2017.08"; \
        echo "PRETTY_NAME=\"Buildroot 2017.08\"" \
) >  /home/xiaoguoguo/buildroot-2017.08/output/target/etc/os-release
-----------------------------------------------------------------------------------------------------------------------------------
find: `/home/xiaoguoguo/buildroot-2017.08/output/target/usr/libexec/': 没有那个文件或目录
       { echo "ERROR: we shouldn't have a /etc/ld.so.conf file"; exit 1; } || true
       { echo "ERROR: we shouldn't have a /etc/ld.so.conf.d directory"; exit 1; } || true
每次编译都会出现,奇怪的是也不影响生成和使用。。。。。

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn