Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Architectures & Platforms Gentoo on ARM
  • Search

Raspberry Pi and Raspberry Pi 2 CFLAGS

Gentoo on all things ARM. Both 32 bit and 64 bit.
Tell about your hardware and CHOST.
Problems with crossdev targeting ARM hardware go here too.
Post Reply
  • Print view
Advanced search
1 post • Page 1 of 1
Author
Message
dinominant
Tux's lil' helper
Tux's lil' helper
Posts: 102
Joined: Fri Oct 27, 2006 6:24 pm
Contact:
Contact dinominant
Website

Raspberry Pi and Raspberry Pi 2 CFLAGS

  • Quote

Post by dinominant » Fri Aug 14, 2015 7:57 pm

I've been maintaining a stage4 install for both the Raspberry Pi and the Raspberry Pi 2 and it was a bit of a task to find good CFLAGS and use flags. The Raspberry Pi 2 supports neon which is the only notable difference in my use flags below.

These are the CFLAGS and other settings I use on my older Raspberry Pi in /etc/portage/make.conf

Code: Select all

CFLAGS="-O2 -pipe -march=armv6j -mtune=arm1176jzf-s -mfpu=vfp -mfloat-abi=hard"
CHOST="armv6j-hardfloat-linux-gnueabi"
# hardware
USE="$USE acpi apm bluetooth cpudetection hddtemp ieee1394 lm_sensors smp usb wifi"
# server
USE="$USE acl crypt cups icu idn imap ipv6 kvm largefile ldap lzma lzo mmap multilib network posix samba sharedmem sockets ssl syslog threads udev unicode vnc xattr"
And these are the CFLAGS I use on my newer Raspberry Pi 2 in /etc/portage/make.conf

Code: Select all

CFLAGS="-O2 -pipe -march=armv7-a -mtune=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard"
CHOST="armv7a-hardfloat-linux-gnueabi"
# hardware
USE="$USE acpi apm bluetooth cpudetection hddtemp ieee1394 lm_sensors neon smp usb wifi"
# server
USE="$USE acl crypt cups icu idn imap ipv6 kvm largefile ldap lzma lzo mmap multilib network posix samba sharedmem sockets ssl syslog threads udev unicode vnc xattr"
Top
Post Reply
  • Print view
1 post • Page 1 of 1

Return to “Gentoo on ARM”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic