Quote:
Say for example I were to take the hard drive of my LFS build and put it in a different computer. Granted, I'll need to generate a new kernel based on the different hardware but what about the differences in CPUs?
|
To able to run LFS in any system you should build kernel with i686 option for 32bit system and generic x86_64 for 64bit system.
Build packages with i686-pc-linux-gnu for 32bit systems ad x86_64-unknown-linux-gnu for 64 bit systems.
Don't use a gcc -march compiler option specific to a system for example avoid 'athlon-xp'. Also check that some packages may use this specific cpu model option -march while building. Look logs of build output and build a correct one with generic cpu like i686 for 32 bit ones (for 64bit ones there is no such generic option; just don't let -march option while building.
For more info on sub-model-options see '
info gcc'.
Also try build a generic kernel with modules supporting each and every hardware. Use it as a reserve. After booting a different system with generic kernel, you can rebuild a kernel with modules for only that specific hardware.