From: Romain Naour Date: Tue, 5 Jul 2016 17:25:09 +0200 Subject: [Buildroot] [PATCH v4] toolchain-external: Commonize /lib/ symlinks In-Reply-To: <29dffd9fd6594bca8449d2007871d3bc@ex13amer-00-ah.ad.mathworks.com> References: <1459381580-18169-1-git-send-email-mfornero@mathworks.com> <1463766725-15724-1-git-send-email-mfornero@mathworks.com> <42f862e3-4e60-1e17-1cba-71355c592924@gmail.com> <29dffd9fd6594bca8449d2007871d3bc@ex13amer-00-ah.ad.mathworks.com> Message-ID: <7b473895-26b1-25d8-1d82-77aeea9ce0b4@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Hi Matt, Le 05/07/2016 ? 17:16, Matt Fornero a ?crit : >> -----Original Message----- >> From: Romain Naour [mailto:romain.naour at gmail.com] >> Sent: Monday, July 04, 2016 7:18 AM >> To: Matt Fornero ; >> buildroot at busybox.net >> Subject: Re: [Buildroot] [PATCH v4] toolchain-external: Commonize >> /lib/ symlinks >> > [snip] > >> After some discussion with other developers, I suggest you to register >> the TOOLCHAIN_EXTERNAL_POST_INSTALL_STAGING_HOOKS from >> BR2_EXTERNAL instead of adding a new configuration option to >> Buildroot. That way you can customize easily what should be done for >> your specific toolchain. >> >> I'm doing this for my CodeSourcery x86 standard toolchain which require >> another symlink in staging directory. >> > > Hi Romain, > > If I understand this correctly, I would simply define a new package in the BR2_EXTERNAL directory that was responsible for creating the symlinks as a _POST_INSTALL_STAGING_HOOKS action, and then enable this package for configurations that used the "custom" Linaro toolchains? Yes, but the hook should be TOOLCHAIN_EXTERNAL_POST_INSTALL_STAGING_HOOKS in order to be done during toolchain install. Best regards, Romain > > -Matt >