Ticket #1121 (closed task: fixed)

Opened 20 months ago

Last modified 11 months ago

Build target fs musl at the start of chapter 5

Reported by: bradfa Owned by: bradfa
Priority: major Milestone: CLFS Embedded 1.0.0
Component: BOOK Version: CLFS Embedded GIT
Keywords: Cc:


In chapter 5, after creating the passwd and log files ( http://clfs.org/view/clfs-embedded/arm/final-system/creatingfiles.html) we should build musl again and install into the targetfs then.

This will remove the need to copy over libraries at the end of the book ( http://clfs.org/view/clfs-embedded/arm/cleanup/copylibs.html). Instead, we would just copy the entire targetfs out and delete the static libs and header files before writing to the target.

This will require using gcc's --sysroot=<targetfs directory> option when setting the toolchain vars ( http://clfs.org/view/clfs-embedded/arm/cross-tools/toolchain.html).

This will also fix the issue of musl's loader symlink being deleted by the second pass of building GCC. When GCC's second pass installs, it basically does an ldconfig which will remove stale symlinks, and since musl's loader symlink is an absolute one which points to a (possibly) nonexistent location on the build host, it'll get removed. By installing directly into the targetfs, we'll avoid this, as the loader symlink isn't needed for the cross-tools set of tools.

Change History

comment:1 Changed 11 months ago by bradfa

  • Status changed from new to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.