rm -f ./usr/initramfs_data.cpio
arm-linux-strip -g --strip-unneeded ../target/rootfs-cpio/bin/* > /dev/null 2>&1
arm-linux-strip -g --strip-unneeded ../target/rootfs-cpio/ffmpeg/* > /dev/null 2>&1
arm-linux-strip -g --strip-unneeded ../target/rootfs-cpio/lib/modules/*.ko > /dev/null 2>&1
arm-linux-strip -g --strip-unneeded ../target/rootfs-cpio/ift/application/* > /dev/null 2>&1
arm-linux-strip -g --strip-unneeded ../target/rootfs-cpio/lib/* > /dev/null 2>&1
make bootsImage
每次strip出来的结果居然会有不同,有时导致libc.so都无法使用。结果就是,我只使用一次strip,而不是每次build都使用它。
它在strip libxxx.so文件时,尤其不可靠。strip AP要好一些。