Skip to contentSkip to conversation

Building x86_64 target

DISCUSSION Perepelica Alexander 2 participants 5 messages Jan 11, 2010

lore
Share & tools
lore
#0 lore raw

Hello!

Why OE don't provide default configs for x86_64 target (on market exists many industrial PC with core 2 duo and other 64-bit CPU) is this some forbidden themes or nobody build target for thouse CPU?

Thank you!

#1 lore raw

Hi,

I think there are a few people building for x86_64 using out-of-tree configurations. Here's my machine config for an HP Proliant server, for what it's worth. It contains a few ugly hacks. I've seen smarter, less ugly ways of doing it, submitted as patches - but I don't think they got applied up till now.

The config below was written before the staging changes a few months back, so there are some references to e.g. layout_libdir that may need to be changed to libdir.

##########################################
PREFERRED_VERSION_linux = "2.6.31"

TARGET_ARCH = "x86_64"

# We can't reuse the same -native builds as 32-bit machines, because

# ours need to be staged into staging/blah/lib64 instead of lib.
# Set blah to x86_64-buildoe64-linux to keep them separate.
BUILD_VENDOR = "-buildoe64"

layout_base_libdir = "${layout_base_prefix}/lib64" layout_libdir = "${layout_exec_prefix}/lib64"

# Some packages install files into /lib/packagename, not /lib64/packagename. FILES_${PN} += "${prefix}/lib/${PN}/*"
FILES_${PN}-dbg += "${prefix}/lib/${PN}/.debug"

# glibc's sysdeps/unix/sysv/linux/configure script only fixes

# libc_cv_slibdir if prefix is "/usr". With prefix of "", we need to fix it
# so libc libs don't get installed into /lib.
export libc_cv_slibdir="/lib64"

# Serial console settings for sysvinit
SERIAL_CONSOLE = "57600 ttyS0"
USE_VT = "0"

MACHINE_FEATURES = "kernel26 pci ext2 x86"

PREFERRED_PROVIDER_virtual/kernel = "linux"

KERNEL_IMAGETYPE = "bzImage"

MACHINE_EXTRA_RRECOMMENDS = " kernel-modules"

udevdir = "/dev"
OLDEST_KERNEL = "2.6.17"
GLIBC_ADDONS = "nptl"
GLIBC_EXTRA_OECONF = "--with-tls"

# Make task-boot include bootloader MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "syslinux-extlinux syslinux-mbr"
##########################################

Mike

Quoted 14 lines · Perepelica Alexander

Hello!

Why OE don't provide default configs for x86_64 target (on market exists many industrial PC with core 2 duo and other 64-bit CPU) is this some forbidden themes or nobody build target for thouse CPU?

Thank you!

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

#2 lore raw

Sorry, for dummy question (I am new with OE) but this config I must save into distro folder?