On Tue, Oct 01, 2019 at 12:20:03PM +0200, Philippe Mathieu-Daudé wrote: > Hi Pete, > > On 9/27/19 10:41 PM, Pete Batard wrote: > > Try this after making sure that you have edk2/, edk2-platforms/ and > > edk-non-osi/ in /home/phil/source: > > > > cd /home/phil/source > > export GCC5_AARCH64_PREFIX=aarch64-linux-gnu- > > export WORKSPACE=$PWD > > export > > PACKAGES_PATH=$WORKSPACE/edk2:$WORKSPACE/edk2-platforms:$WORKSPACE/edk2-non-osi > > > > source edk2/edksetup.sh --reconfig > > build -a AARCH64 -t GCC5 -p > > edk2-platforms/Platform/RaspberryPi/RPi3/RPi3.dsc -b DEBUG > > [note for other readers: I'm answering to Pete top-posted comment, > start of the discussion can be followed below my reply] > > I'm confused because this works like charm. > > I always used: > > WORKSPACE = /home/phil/source/edk2 > PACKAGES_PATH = > /home/phil/source/edk2:/home/phil/source/edk2-platforms > > and built into my edk2/ folder (my $WORKSPACE). > > Leif noticed I was missing edk2-non-osi, so I added it (this reply below): > > PACKAGES_PATH = > /home/phil/source/edk2:/home/phil/source/edk2-platforms:/home/phil/source/edk2-non-osi > > > I don't understand why modifying $WORKSPACE out of edk2/ this changes the > behavior into failure, I thought it was would mostly change the Build/ > folder location, and the packages were only searched into $PACKAGES_PATH > (which did not change).
Yeah, I recall this from the early days of moving from OpenPlatformPkg (symlink or submodule) to edk2-platforms (and PACKAGES_PATH). Something in the "let's avoid getting namespace clashes" logic goes bonkers[1] when you get any part of path overlap (i.e. Platform/ in more than one PACKAGES_PATH directory) ... but only when using edk2/ as WORKSPACE. [1] does what Leif wouldn't have expected > Anyhow I'll adapt my setup and not use edk2/ as $WORKSPACE anymore. Yeah, that's what I did. / Leif > Thanks for the pointers, > > Phil. -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#48346): https://edk2.groups.io/g/devel/message/48346 Mute This Topic: https://groups.io/mt/34309623/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-