From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gary Bisson Date: Tue, 30 Jun 2020 14:18:11 +0200 Subject: [Buildroot] [PATCH v2 2/4] package/freescale-imx/firmware-imx: Add option for all i.MX FW needs In-Reply-To: <20200630140829.14425eac@windsurf> References: <1593419148-26821-1-git-send-email-stephane.viau@oss.nxp.com> <1593419148-26821-3-git-send-email-stephane.viau@oss.nxp.com> <20200630115341.GA791671@p1g2> <20200630140829.14425eac@windsurf> Message-ID: <20200630121811.GA1094671@p1g2> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Hi Thomas, On Tue, Jun 30, 2020 at 02:08:29PM +0200, Thomas Petazzoni wrote: > On Tue, 30 Jun 2020 13:53:41 +0200 > Gary Bisson wrote: > > > > +config BR2_PACKAGE_FIRMWARE_IMX_VPU_CODA > > > + bool > > > + depends on BR2_PACKAGE_FIRMWARE_IMX > > > + default y if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX27ADS > > > + default y if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX37_3STACK > > > + default y if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX50 > > > + default y if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX51 > > > + default y if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX53 > > > + default y if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX6Q > > > + > > > +config BR2_PACKAGE_FIRMWARE_IMX_VPU_MALONE > > > + bool > > > + depends on BR2_PACKAGE_FIRMWARE_IMX > > > + default y if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8 > > > + default y if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8X > > > > So here you are either copying all the VPU Malone blob or all the VPU > > CODA blob no matter the platform being used? > > > > Since we cleaning things up, I'd rather have a generic > > BR2_PACKAGE_FIRMWARE_IMX_VPU config for all the platforms that require a > > VPU blob (from firmware-imx). > > Then in the .mk I'd only copy the VPU blob associated to the platform > > selected (mx27, mx6, mx8 etc). > > That way we don't embed imx27 blob when we build for imx6. As someone > > mentioned in the previous, there's no need to embeds blobs we know are > > useless. > > Could you list which blobs are relevant for each platform, so we get a > sense of what is needed and what is not ? Well listing the files from the package gives a pretty good overview: $ find firmware/vpu/vpu* firmware/vpu/vpu_fw_imx27_TO1.bin firmware/vpu/vpu_fw_imx27_TO2.bin firmware/vpu/vpu_fw_imx51.bin firmware/vpu/vpu_fw_imx53.bin firmware/vpu/vpu_fw_imx6d.bin firmware/vpu/vpu_fw_imx6q.bin firmware/vpu/vpu_fw_imx8_dec.bin firmware/vpu/vpu_fw_imx8_enc.bin Also, with this approach we eliminate the possible errors from selecting the wrong package for your platforms. I don't know many customers that actually know the VPU IP is CODA for i.MX6 or Malone for i.MX8. Regards, Gary