From: Romain Naour Date: Tue, 7 Feb 2017 10:21:36 +0100 Subject: [Buildroot] [RFC 1/1] zynq-custom-fpga: new package In-Reply-To: References: <1485273729-11541-1-git-send-email-matthew.weber@rockwellcollins.com> <11a78ea4-0887-c3a1-6f2e-3902e8429ef3@gmail.com> Message-ID: <94ae85f1-5639-1513-beda-30e0ce8c8f8c@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Hi Matt, Le 06/02/2017 ? 22:50, Matt Fornero a ?crit : >> From: Romain Naour [mailto:romain.naour at gmail.com] >> Le 24/01/2017 ? 17:02, Matt Weber a ?crit : > >>> +ifeq ($(BR2_PACKAGE_ZYNQ_CUSTOM_FPGA_UBOOT_SPL),y) >>> +UBOOT_DEPENDENCIES += zynq-custom-fpga >>> +UBOOT_POST_EXTRACT_HOOKS += ZYNQ_CUSTOM_FPGA_COPY_INIT >> >> Modifying uboot dependencies and hooks in zynq-custom-fpga is not a good >> practice actually. >> >> I would recommend to create a u-boot fork for zynq FPGA providing all >> specific >> uboot files instead of creating the zync-custom-fpga package. >> >> Best regards, >> Romain > > Hi Romain, > > Forking U-Boot to update the ps*_init_gpl.[c|h] files would be challenging. > These files are dynamically generated by the FPGA build tool (Vivado) based on > the user's configuration, so will vary both from board to board, and within a > board from design to design. > > Is there a recommended technique, given the above? Actually, it would be easier to propose something if you can share an example of ps*_init_gpl.[c|h] files, because without it I can't really test your use case. That said, the aim of zync-custom-fpga is to allow patching/modifying u-boot sources for a very specific case (custom board), so why not using BR2_TARGET_UBOOT_PATCH ? Also, try (at first) to use BR2_TARGET_UBOOT_SPL with BR2_TARGET_UBOOT_SPL_NAME=$(ZYNQ_CUSTOM_FPGA_PREFIX).bit to install fpga.bit in output/image directory. But we probably needs something more generic than BR2_TARGET_UBOOT_SPL. Best regards, Romain > > Best Regards, > Matt Fornero >