Increase ARCH_NR_GPIO for ARCH_ASPEED?

Tao Ren taoren at fb.com
Fri Feb 22 11:55:07 AEDT 2019


Hi Andrew,

On 2/19/19 4:15 PM, Andrew Jeffery wrote:
> On Wed, 20 Feb 2019, at 10:43, Tao Ren wrote:
>> Hi Andrew,
>>
>> On 2/17/19 9:11 PM, Andrew Jeffery wrote:
>>> As an example, for Tiogapass, you should be able to define `CONFIG_ARCH_NR_GPIO = 1024` in tiogapass.cfg:
>>>
>>> https://github.com/openbmc/meta-facebook/blob/master/meta-tiogapass/recipes-kernel/linux/linux-aspeed/tiogapass.cfg
>>
>> I tried to define 'CONFIG_ARCH_NR_GPIO=1024' in <platform>.cfg, but 
>> still, it's reset to 0 by "make olddefconfig".
>>
>> Below are my steps (using the latest openbmc tree), and kindly let me 
>> know if I missed something:
>>
>> 1) added 'CONFIG_ARCH_NR_GPIO=1024' in 
>> meta-ibm/meta-romulus/recipes-kernel/linux/linux-aspeed/romulus.cfg
>> 2) export TEMPLATECONF=meta-ibm/meta-romulus/conf
>> 3) . openbmc-env
>> 4) ran "bitbake linux-aspeed"
>> 5) checked 
>> build/tmp/work/romulus-openbmc-linux-gnueabi/linux-aspeed/4.19.21+gitAUTOINC+d808d27f70-r0/linux-romulus-standard-build/.config: CONFIG_ARCH_NR_GPIO is reset to 0.
> 
> Ugh. I didn't try it myself, was just hoping that would work. Are you okay
> to keep digging into why?

Manually editing "ARCH_NR_GPIO" in <platform>.cfg doesn't work because ARCH_NR_GPIO symbol is "invisible" and user defined value will be ignored by "scripts/kconfig/conf". I compared a few other ways to fix/workaround the issue, but IMHO, increasing default ARCH_NR_GPIO for ARCH_ASPEED is better than other solutions. Please suggest.

BTW, "CONFIG_GCC_PLUGINS=y" in meta-aspeed/recipes-kernel/linux/ast2500/defconfig is not included in the final .config because its dependency option PLUGIN_HOSTCC is not set.


Thanks,

- Tao


More information about the openbmc mailing list