Opened 14 years ago
Closed 14 years ago
#758 closed enhancement (fixed)
Add --with-cpu= to all builds
Reported by: | Andrew Bradford | Owned by: | |
---|---|---|---|
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 by , 14 years ago
comment:2 by , 14 years ago
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 by , 14 years ago
My git repo, as of commit b54e9693a1657df4c308a92602e96370c3850f6a enables the use of --with-arch for ARM, MIPS, WRT, and x86.
comment:4 by , 14 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
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."