Opened 10 years ago

Closed 10 years ago

#758 closed enhancement (fixed)

Add --with-cpu= to all builds

Reported by: Andrew Bradford Owned by: clfs-commits@…
Priority: major Milestone: CLFS Embedded 1.0.0
Component: BOOK Version: CLFS Embedded GIT
Keywords: Cc:

Description

To optimize cross-GCC outputted code for an architecture, the --with-arch= switch can be passed to GCC when building it.

Currently the book only does this for x86, it should also do it for ARM and MIPS. This will require a table listing all different values --with-cpu= can be and descriptions.

Change History (4)

comment:1 Changed 10 years ago by Andrew Bradford

Created based on Joe's question in #620: "Does it make sense to add --with-cpu to each of the builds as well? This is an embedded build, Chances are its being built for a specific piece of hardware. I like the idea of optimizing it for that particular CPU. Or at least explicitly setting the minimum generation."

comment:2 Changed 10 years ago by Andrew Bradford

Sorry, my ticket description isn't clear. Guess there should also be a debate about --with-cpu= versus --with-arch=.

--with-cpu= specifies an exact CPU (such as arm1136jf-s for ARM) while --with-arch= specifies a family or generation of CPU (such as armv6j for ARM).

comment:3 Changed 10 years ago by Andrew Bradford

My git repo, as of commit b54e9693a1657df4c308a92602e96370c3850f6a enables the use of --with-arch for ARM, MIPS, WRT, and x86.

comment:4 Changed 10 years ago by Joe Ciccone

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.