[Buildroot] [PATCH v3 5/7] package/nodejs: remove version choice
Martin Bark
martin at barkynet.com
Thu Dec 24 16:23:13 UTC 2015
Thomas,
On 23 December 2015 at 17:56, Thomas Petazzoni
<thomas.petazzoni at free-electrons.com> wrote:
> Martin,
>
> On Wed, 23 Dec 2015 12:16:06 +0000, Martin Bark wrote:
>
>> diff --git a/package/nodejs/Config.in b/package/nodejs/Config.in
>> index eb3aeec..1aac38e 100644
>> --- a/package/nodejs/Config.in
>> +++ b/package/nodejs/Config.in
>> @@ -6,6 +6,7 @@ config BR2_PACKAGE_NODEJS
>> depends on !BR2_MIPS_SOFT_FLOAT
>> # ARM needs BLX, so v5t+
>> depends on !BR2_ARM_CPU_ARMV4
>> + depends on BR2_PACKAGE_NODEJS_0_10_X || BR2_PACKAGE_NODEJS_5_X
>
> I don't like that the main BR2_PACKAGE_NODEJS option depends on
> BR2_PACKAGE_NODEJS_0_10_X || BR2_PACKAGE_NODEJS_5_X.
>
> Instead, please do something like:
>
> BR2_PACKAGE_NODEJS_VERSION
> string
> default "5.3.0" if BR2_PACKAGE_NODEJS_V8_ARCH_SUPPORTS && BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 && BR2_USE_WCHAR
> default "0.10.41"
>
> And then use BR2_PACKAGE_NODEJS_VERSION in nodejs.mk to find which
> version to use.
I'm not 100% clear what you want. If BR2_PACKAGE_NODEJS does not
depend on BR2_PACKAGE_NODEJS_0_10_X || BR2_PACKAGE_NODEJS_5_X then you
can select nodejs when some dependencies are not satisfied. This
would mean 0.10.x would get installed on architectures other than
armv5. I thought the idea was 0.10.x only on armv5. Can you please
clarify.
Thanks
Martin
>
> Thomas
> --
> Thomas Petazzoni, CTO, Free Electrons
> Embedded Linux, Kernel and Android engineering
> http://free-electrons.com
More information about the buildroot
mailing list