Forums

Skip to content

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

How can I create multiple of the same crossdev targets?

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
3 posts • Page 1 of 1
Author
Message
epenguin
n00b
n00b
User avatar
Posts: 25
Joined: Tue Dec 07, 2021 7:56 pm
Location: US
Contact:
Contact epenguin
Website

How can I create multiple of the same crossdev targets?

  • Quote

Post by epenguin » Sun Jan 02, 2022 8:04 pm

If I run

Code: Select all

crossdev -S -t aarch64-unknown-linux-gnu --genv 'USE="cxx multilib fortran -mudflap nls openmp -sanitize"'
I think this will create a raspberry pi 3 b+ toolchain with all the stages required to run gentoo. The problem is I need multiple of these for different systems (some raspberry pi 3 b+ will be different than others). Is there a way to rename these targets so when I call emerge as <TARGET>-emerge <stuff> it doesn't emerge for every system? Ideally it would looking something like

Code: Select all

crossdev -S -t aarch64-unknown-linux-gnu --name "rpi-3bp-gentoo-v1"
and

Code: Select all

crossdev -S -t aarch64-unknown-linux-gnu --name "rpi-3bp-gentoo-v2" # where v2 has a bunch of different packages than v1.
So that way I can call

Code: Select all

rpi-3bp-gentoo-v2-emerge -a apackage
and this wont affect v1.
Top
pingtoo
Advocate
Advocate
User avatar
Posts: 2183
Joined: Fri Sep 10, 2021 8:37 pm
Location: Richmond Hill, Canada

  • Quote

Post by pingtoo » Mon Jan 03, 2022 12:06 am

Because your described usage use exact same toolchain so I am uncertain what is the intention here. For simple typing let's call the two toolchain t1 and t2 and assume it is possible do as exactly your description.

I think you want when you call t1-emerge -a t1-apackage you want t1-apackage installed in /usr/t1/ and call t2-emerge -a t2-bpackage and t2-bpackage will be installed in /usr/t2/ but what do you want for /usr/t1/ and /usr/t2/? do you want to copy them to t1-rpi3bp/t2-rpi3bp as root file system?

I wonder using binpkg host may be able to do above? For example create one toolchain and emerge --buildpkg t1-apackage t2-bpackage, so you have superset contain all binpkgs of you need than on individual rpi3 emerge --get-binpkg/--get-binpkgonly --usepkg/--usepkgonly t1-apackage (or t2-bpackage)

I think it is possible to have two or more same crossdev toolchains but you will need to rename each /u/<target> to /u/<unique-target> than modify /u/<target>/etc/portage/make.conf's ROOT=/usr/<unique-target> and you also need to rename <target>-emerge to <unique-target>-emerge. I never done this before so above just my guess.
Top
epenguin
n00b
n00b
User avatar
Posts: 25
Joined: Tue Dec 07, 2021 7:56 pm
Location: US
Contact:
Contact epenguin
Website

  • Quote

Post by epenguin » Mon Jan 03, 2022 6:37 pm

pingtoo wrote: I think it is possible to have two or more same crossdev toolchains but you will need to rename each /u/<target> to /u/<unique-target> than modify /u/<target>/etc/portage/make.conf's ROOT=/usr/<unique-target> and you also need to rename <target>-emerge to <unique-target>-emerge. I never done this before so above just my guess.
The reason I would want two separate systems is because they would be configured in drastically different ways. I actually tried to straight up just untar the stage 3 files for the pi into /usr/rpi-gentoo, but calling rpi-gentoo-emerge didn't work. Wasn't found.
I'm going to try this again today and give an update.
Top
Post Reply
  • Print view

3 posts • 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