Hi Lijun,
Make the prep build first to have .config in BUILD/<kernel>/<linux> (let's say config.org)
Then, add CONFIG_USB_DWC3=m in config-centos-sig, run rpmbuild again. The error will occur as you said.
Compare error item CONFIG_USB_DWC3_ULPI to config.org.
If CONFIG_USB_DWC3_ULPI does not exist, add "#CONFIG_USB_DWC3_ULPI is not set" to config-centos-sig If CONFIG_USB_DWC3_ULPI=m, add "CONFIG_USB_DWC3_ULPI=m" to config-centos-sig If CONFIG_USB_DWC3_ULPI=y, add "CONFIG_USB_DWC3_ULPI=y" to config-centos-sig
Do the same to the others.
Best regards,
Chuong.
On Tue, Apr 5, 2016 at 10:51 PM, Lijun Pan lijun.pan@nxp.com wrote:
Add the mailing list. Have any of you seen this similar issue before?
Thanks, Lijun Pan
From: Lijun Pan Sent: Tuesday, April 5, 2016 10:09:16 AM To: Jim Perrin Subject: rpmbuild report newoptions error
Hi Jim,
When I enabled CONFIG_USB_DWC3=m in config-centos-sig
rpmbuild has following errors
- '[' -s .newoptions ']'
- cat .newoptions
CONFIG_USB_DWC3_ULPI CONFIG_USB_DWC3_PCI CONFIG_USB_DWC3_DEBUG
- exit 1
error: Bad exit status from /var/tmp/rpm-tmp.7mSfnd (%prep)
While looking at my USB driver code, I did not enable or add those 3 configuration. Do you think it is a bug in the kernel-aarch64.spec? Can we fix it somehow?
Thanks, Lijun _______________________________________________ Arm-dev mailing list Arm-dev@centos.org https://lists.centos.org/mailman/listinfo/arm-dev