开发者

How to prepare modules.dep and ld.so.cache while cross-compiling?

开发者 https://www.devze.com 2023-01-13 09:53 出处:网络
I\'m cross-compiling kernel modules and some libraries on x86 for ppc. Is it possible to create ld.so.cache and modules.开发者_如何学Godep on my host system?

I'm cross-compiling kernel modules and some libraries on x86 for ppc. Is it possible to create ld.so.cache and modules.开发者_如何学Godep on my host system?

P.S I'm using ELDK tools.


modules.dep should be generated when the modules are built. It's also a text file so is readable on either architecture.

I'm pretty sure it'd be hard to generate ld.so.cache on anything but the system target system. It's a binary file that built up given the specific libraries available on your rootfs and configuration in /etc/ld.so.conf.


depmod can run just fine against foreign architecture modules. Assuming you've built your kernel and deployed your modules (eg 3rd party modules) to your system-root:

/sbin/depmod -ae -F /path/to/System.map -b /path/to/system/root <kernel-version-name>

Haven't found a solution for ldconfig, yet.

0

精彩评论

暂无评论...
验证码 换一张
取 消