[Arm-dev] Fw: rpmbuild report newoptions error

Tue Apr 5 16:03:07 UTC 2016
Chuong Tran <cltran at apm.com>

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 at 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 at centos.org
> https://lists.centos.org/mailman/listinfo/arm-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.centos.org/pipermail/arm-dev/attachments/20160405/dc2b5e9e/attachment-0006.html>