From 99ac0639fff61cbdcfe58668eb9b0083d624504f Mon Sep 17 00:00:00 2001 From: Adrian Dudau Date: Thu, 26 Jun 2014 14:29:42 +0200 Subject: initial commit for Enea Linux 4.0 Migrated from the internal git server on the daisy-enea branch Signed-off-by: Adrian Dudau --- recipes-bsp/u-boot/u-boot-extra.inc | 56 ++++++++++ recipes-bsp/u-boot/u-boot-xlnx.inc | 12 +++ .../microblaze_Fix_coding_style_for_bootb.patch | 114 +++++++++++++++++++++ ...laze_bootm_Add_support_for_loading_initrd.patch | 32 ++++++ .../microblaze_bootm_Fix_coding_style_issues.patch | 70 +++++++++++++ .../zynq-Increase-number-of-arguments.patch | 29 ++++++ ...-Add-uEnv.txt-boot-environment-load-suppo.patch | 72 +++++++++++++ recipes-bsp/u-boot/u-boot-xlnx_2013.01.bb | 17 +++ recipes-bsp/u-boot/u-boot-xlnx_2013.07.bb | 12 +++ recipes-bsp/u-boot/u-boot-xlnx_git.bb | 29 ++++++ 10 files changed, 443 insertions(+) create mode 100644 recipes-bsp/u-boot/u-boot-extra.inc create mode 100644 recipes-bsp/u-boot/u-boot-xlnx.inc create mode 100644 recipes-bsp/u-boot/u-boot-xlnx/microblaze_Fix_coding_style_for_bootb.patch create mode 100644 recipes-bsp/u-boot/u-boot-xlnx/microblaze_bootm_Add_support_for_loading_initrd.patch create mode 100644 recipes-bsp/u-boot/u-boot-xlnx/microblaze_bootm_Fix_coding_style_issues.patch create mode 100644 recipes-bsp/u-boot/u-boot-xlnx/zynq-Increase-number-of-arguments.patch create mode 100644 recipes-bsp/u-boot/u-boot-xlnx/zynq_common-Add-uEnv.txt-boot-environment-load-suppo.patch create mode 100644 recipes-bsp/u-boot/u-boot-xlnx_2013.01.bb create mode 100644 recipes-bsp/u-boot/u-boot-xlnx_2013.07.bb create mode 100644 recipes-bsp/u-boot/u-boot-xlnx_git.bb (limited to 'recipes-bsp') diff --git a/recipes-bsp/u-boot/u-boot-extra.inc b/recipes-bsp/u-boot/u-boot-extra.inc new file mode 100644 index 00000000..e476b22e --- /dev/null +++ b/recipes-bsp/u-boot/u-boot-extra.inc @@ -0,0 +1,56 @@ + +inherit xilinx-utils + +S = "${WORKDIR}/git" +PACKAGE_ARCH = "${MACHINE_ARCH}" + +# Also deploy u-boot elf file with same file format as bin file +UBOOTXTENSION ?= "${XILINX_EXTENSION}-${MACHINE}" +SRC_ELF ?= "u-boot" +DEST_ELF ?= "u-boot${UBOOTXTENSION}-${PV}-${PR}.elf" +ELF_SYMLINK ?= "u-boot${UBOOTXTENSION}.elf" +do_deploy_append() { + install ${S}/${SRC_ELF} ${DEPLOYDIR}/${DEST_ELF} + + cd ${DEPLOYDIR} + rm -f ${SRC_ELF} ${ELF_SYMLINK} + ln -sf ${DEST_ELF} ${ELF_SYMLINK} + ln -sf ${DEST_ELF} ${SRC_ELF}.elf +} + +# Appends the '/conf/machine/boards' path to FILESEXTRAPATHS for all +# layers (using the ${BBPATH}) +FILESEXTRAPATHS_append := "${@get_additional_bbpath_filespath('conf/machine/boards', d)}" + +# Append the xparameters file to the SRC_URI if set +SRC_URI_append += " ${@paths_affix(d.getVar("MACHINE_XPARAMETERS", True) or '', prefix = 'file://')}" + +# Full path to the xparameters.h file +UBOOT_XPARAMETERS ?= "${@expand_workdir_paths("MACHINE_XPARAMETERS", d)}" + +# Install the MicroBlaze System configuration into the board configuration, +# and generate a u-boot specific config.mk +do_configure_prepend () { + if [ "${SOC_FAMILY}" = "microblaze" -a -e "${UBOOT_XPARAMETERS}" ]; then + CONFIG_MK=${S}/board/xilinx/microblaze-generic/config.mk + cp ${UBOOT_XPARAMETERS} ${S}/board/xilinx/microblaze-generic/xparameters.h + + # Generate the config.mk from CFLAGS and XPARAMETERS file + echo "# This file is generated by the meta-xilinx layer." > ${CONFIG_MK} + echo "" >> ${CONFIG_MK} + + # Export CCARGS + for i in ${TUNE_CCARGS}; do + echo "PLATFORM_CPPFLAGS += $i" >> ${CONFIG_MK} + done + echo "" >> ${CONFIG_MK} + + # Calculate the TEXT_BASE address at RAM_END - 4MB + RAM_START=$(grep "XILINX_RAM_START" ${UBOOT_XPARAMETERS} | grep -o "0x.*$") + RAM_SIZE=$(grep "XILINX_RAM_SIZE" ${UBOOT_XPARAMETERS} | grep -o "0x.*$") + BASE_OFFSET=$(printf "0x%08x" "$[$RAM_START + $RAM_SIZE - 0x400000]") + + echo "TEXT_BASE = $BASE_OFFSET" >> ${CONFIG_MK} + echo "CONFIG_SYS_TEXT_BASE = $BASE_OFFSET" >> ${CONFIG_MK} + fi +} diff --git a/recipes-bsp/u-boot/u-boot-xlnx.inc b/recipes-bsp/u-boot/u-boot-xlnx.inc new file mode 100644 index 00000000..03052ddf --- /dev/null +++ b/recipes-bsp/u-boot/u-boot-xlnx.inc @@ -0,0 +1,12 @@ +require recipes-bsp/u-boot/u-boot.inc + +LICENSE = "GPLv2+" +LIC_FILES_CHKSUM = "file://COPYING;md5=1707d6db1d42237583f50183a5651ecb" + +XILINX_EXTENSION = "-xilinx" + +FILESEXTRAPATHS += "${THISDIR}/u-boot-xlnx:" +SRC_URI = "git://github.com/Xilinx/u-boot-xlnx.git;protocol=https" + +include u-boot-extra.inc + diff --git a/recipes-bsp/u-boot/u-boot-xlnx/microblaze_Fix_coding_style_for_bootb.patch b/recipes-bsp/u-boot/u-boot-xlnx/microblaze_Fix_coding_style_for_bootb.patch new file mode 100644 index 00000000..09648c10 --- /dev/null +++ b/recipes-bsp/u-boot/u-boot-xlnx/microblaze_Fix_coding_style_for_bootb.patch @@ -0,0 +1,114 @@ +From: Michal Simek +Subject: [U-BOOT PATCH 1/3] microblaze: Fix coding style for bootb + +Fix this weird untested code to be able to other changes. + +Signed-off-by: Michal Simek +--- + arch/microblaze/lib/bootm.c | 81 ++++++++++++++++++++++++--------------------- + 1 file changed, 43 insertions(+), 38 deletions(-) + +diff --git a/arch/microblaze/lib/bootm.c b/arch/microblaze/lib/bootm.c +index 7da683d..6c4fa60 100644 +--- a/arch/microblaze/lib/bootm.c ++++ b/arch/microblaze/lib/bootm.c +@@ -91,52 +91,57 @@ int do_bootm_linux(int flag, int argc, char * const argv[], bootm_headers_t *ima + #if defined(CONFIG_CMD_BOOTB) + int do_bootb_kintex7(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) + { +- u32 FrameBuffer[8]; +- u32 BootAddress = simple_strtoul(argv[1], NULL, 16); +- u32 Index = 0; +- u32 Count; +- +- if (argc < 2) ++ u32 framebuffer[8]; ++ u32 bootaddress = simple_strtoul(argv[1], NULL, 16); ++ u32 index = 0; ++ u32 count; ++ ++ if (argc < 2) ++ return -1; ++ ++ if ((bootaddress < CONFIG_SYS_FLASH_BASE) || ++ (bootaddress > (CONFIG_SYS_FLASH_BASE + CONFIG_SYS_FLASH_SIZE))) + return -1; +- +- if ((BootAddress < CONFIG_SYS_FLASH_BASE) || (BootAddress > (CONFIG_SYS_FLASH_BASE + CONFIG_SYS_FLASH_SIZE))) +- { +- return -1; +- } + +- /* ++ /* + * Create the data to be written to the ICAP. + */ +- FrameBuffer[Index++] = XHI_DUMMY_PACKET; +- FrameBuffer[Index++] = XHI_SYNC_PACKET; +- FrameBuffer[Index++] = XHI_NOOP_PACKET; +- FrameBuffer[Index++] = 0x30020001; /* Type 1 write to WBSTAR */ +- FrameBuffer[Index++] = BootAddress; +- FrameBuffer[Index++] = 0x30008001; /* Type 1 Write to CMD */ +- FrameBuffer[Index++] = XHI_CMD_IPROG; +- FrameBuffer[Index++] = XHI_NOOP_PACKET; +- +- /* +- * Fill the FIFO with as many words as it will take (or as many as we have to send). +- */ +- while(Index > XHwIcap_GetWrFifoVacancy(HWICAP_BASEADDR)); +- for (Count = 0; Count < Index; Count++) +- { +- XHwIcap_FifoWrite(HWICAP_BASEADDR, FrameBuffer[Count]); +- } +- +- /* ++ framebuffer[index++] = XHI_DUMMY_PACKET; ++ framebuffer[index++] = XHI_SYNC_PACKET; ++ framebuffer[index++] = XHI_NOOP_PACKET; ++ framebuffer[index++] = 0x30020001; /* Type 1 write to WBSTAR */ ++ framebuffer[index++] = bootaddress; ++ framebuffer[index++] = 0x30008001; /* Type 1 Write to CMD */ ++ framebuffer[index++] = XHI_CMD_IPROG; ++ framebuffer[index++] = XHI_NOOP_PACKET; ++ ++ /* ++ * Fill the FIFO with as many words as it will take ++ * (or as many as we have to send). ++ */ ++ while (index > XHwIcap_GetWrFifoVacancy(HWICAP_BASEADDR)) ++ ; ++ for (count = 0; count < index; count++) ++ XHwIcap_FifoWrite(HWICAP_BASEADDR, framebuffer[count]); ++ ++ ++ /* + * Start the transfer of the data from the FIFO to the ICAP device. + */ + XHwIcap_StartConfig(HWICAP_BASEADDR); + +- while ((XHwIcap_ReadReg(HWICAP_BASEADDR,XHI_CR_OFFSET)) & XHI_CR_WRITE_MASK); +- +- while (XHwIcap_IsDeviceBusy(HWICAP_BASEADDR) != 0); +- while (XHwIcap_ReadReg(HWICAP_BASEADDR, XHI_CR_OFFSET) & XHI_CR_WRITE_MASK); +- +- /* The code should never get here sice the FPGA should reset */ +- return -1; ++ while ((XHwIcap_ReadReg(HWICAP_BASEADDR, XHI_CR_OFFSET)) & ++ XHI_CR_WRITE_MASK) ++ ; ++ ++ while (XHwIcap_IsDeviceBusy(HWICAP_BASEADDR) != 0) ++ ; ++ while (XHwIcap_ReadReg(HWICAP_BASEADDR, XHI_CR_OFFSET) & ++ XHI_CR_WRITE_MASK) ++ ; ++ ++ /* The code should never get here sice the FPGA should reset */ ++ return -1; + } + + U_BOOT_CMD( +-- +1.8.2.1 + + diff --git a/recipes-bsp/u-boot/u-boot-xlnx/microblaze_bootm_Add_support_for_loading_initrd.patch b/recipes-bsp/u-boot/u-boot-xlnx/microblaze_bootm_Add_support_for_loading_initrd.patch new file mode 100644 index 00000000..88c44687 --- /dev/null +++ b/recipes-bsp/u-boot/u-boot-xlnx/microblaze_bootm_Add_support_for_loading_initrd.patch @@ -0,0 +1,32 @@ +From: Michal Simek +Subject: [U-BOOT PATCH 3/3] microblaze: bootm: Add support for loading + initrd + +fdt_initrd add additional information to DTB about initrd +addresses which are later used by kernel. + +Signed-off-by: Michal Simek +--- + arch/microblaze/lib/bootm.c | 5 +++++ + 1 file changed, 5 insertions(+) + +diff --git a/arch/microblaze/lib/bootm.c b/arch/microblaze/lib/bootm.c +index 56a1568..fbb43b8 100644 +--- a/arch/microblaze/lib/bootm.c ++++ b/arch/microblaze/lib/bootm.c +@@ -68,6 +68,11 @@ int do_bootm_linux(int flag, int argc, char * const argv[], + + if (!of_flat_tree && argc > 3) + of_flat_tree = (char *)simple_strtoul(argv[3], NULL, 16); ++ ++ /* fixup the initrd now that we know where it should be */ ++ if (images->rd_start && images->rd_end && of_flat_tree) ++ fdt_initrd(of_flat_tree, images->rd_start, images->rd_end, 1); ++ + #ifdef DEBUG + printf("## Transferring control to Linux (at address 0x%08lx) ", + (ulong)thekernel); +-- +1.8.2.1 + + diff --git a/recipes-bsp/u-boot/u-boot-xlnx/microblaze_bootm_Fix_coding_style_issues.patch b/recipes-bsp/u-boot/u-boot-xlnx/microblaze_bootm_Fix_coding_style_issues.patch new file mode 100644 index 00000000..1352d828 --- /dev/null +++ b/recipes-bsp/u-boot/u-boot-xlnx/microblaze_bootm_Fix_coding_style_issues.patch @@ -0,0 +1,70 @@ +From: Michal Simek +Subject: [U-BOOT PATCH 2/3] microblaze: bootm: Fix coding style issues + +Prepare place for new patch. + +Signed-off-by: Michal Simek +--- + arch/microblaze/lib/bootm.c | 20 +++++++++++--------- + 1 file changed, 11 insertions(+), 9 deletions(-) + +diff --git a/arch/microblaze/lib/bootm.c b/arch/microblaze/lib/bootm.c +index 6c4fa60..56a1568 100644 +--- a/arch/microblaze/lib/bootm.c ++++ b/arch/microblaze/lib/bootm.c +@@ -36,11 +36,12 @@ + + DECLARE_GLOBAL_DATA_PTR; + +-int do_bootm_linux(int flag, int argc, char * const argv[], bootm_headers_t *images) ++int do_bootm_linux(int flag, int argc, char * const argv[], ++ bootm_headers_t *images) + { + /* First parameter is mapped to $r5 for kernel boot args */ +- void (*theKernel) (char *, ulong, ulong); +- char *commandline = getenv ("bootargs"); ++ void (*thekernel) (char *, ulong, ulong); ++ char *commandline = getenv("bootargs"); + ulong rd_data_start, rd_data_end; + + if ((flag != 0) && (flag != BOOTM_STATE_OS_GO)) +@@ -55,10 +56,10 @@ int do_bootm_linux(int flag, int argc, char * const argv[], bootm_headers_t *ima + of_flat_tree = images->ft_addr; + #endif + +- theKernel = (void (*)(char *, ulong, ulong))images->ep; ++ thekernel = (void (*)(char *, ulong, ulong))images->ep; + + /* find ramdisk */ +- ret = boot_get_ramdisk (argc, argv, images, IH_ARCH_MICROBLAZE, ++ ret = boot_get_ramdisk(argc, argv, images, IH_ARCH_MICROBLAZE, + &rd_data_start, &rd_data_end); + if (ret) + return 1; +@@ -68,9 +69,10 @@ int do_bootm_linux(int flag, int argc, char * const argv[], bootm_headers_t *ima + if (!of_flat_tree && argc > 3) + of_flat_tree = (char *)simple_strtoul(argv[3], NULL, 16); + #ifdef DEBUG +- printf ("## Transferring control to Linux (at address 0x%08lx) " \ +- "ramdisk 0x%08lx, FDT 0x%08lx...\n", +- (ulong) theKernel, rd_data_start, (ulong) of_flat_tree); ++ printf("## Transferring control to Linux (at address 0x%08lx) ", ++ (ulong)thekernel); ++ printf("ramdisk 0x%08lx, FDT 0x%08lx...\n", ++ rd_data_start, (ulong) of_flat_tree); + #endif + + #ifdef XILINX_USE_DCACHE +@@ -82,7 +84,7 @@ int do_bootm_linux(int flag, int argc, char * const argv[], bootm_headers_t *ima + * r6: pointer to ramdisk + * r7: pointer to the fdt, followed by the board info data + */ +- theKernel (commandline, rd_data_start, (ulong) of_flat_tree); ++ thekernel(commandline, rd_data_start, (ulong)of_flat_tree); + /* does not return */ + + return 1; +-- +1.8.2.1 + + diff --git a/recipes-bsp/u-boot/u-boot-xlnx/zynq-Increase-number-of-arguments.patch b/recipes-bsp/u-boot/u-boot-xlnx/zynq-Increase-number-of-arguments.patch new file mode 100644 index 00000000..22c9fb67 --- /dev/null +++ b/recipes-bsp/u-boot/u-boot-xlnx/zynq-Increase-number-of-arguments.patch @@ -0,0 +1,29 @@ +From: Michal Simek +Date: Wed, 4 Sep 2013 08:59:37 +0200 +Subject: [PATCH] zynq: Increase number of arguments + +The main reason is that with adding option to load +variables from SD user can create longer user commands. + +Signed-off-by: Michal Simek +Upstream-Status: Backport +--- + include/configs/zynq_common.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/include/configs/zynq_common.h b/include/configs/zynq_common.h +index a7cadc4..e83c6de 100644 +--- a/include/configs/zynq_common.h ++++ b/include/configs/zynq_common.h +@@ -105,7 +105,7 @@ + #define CONFIG_AUTO_COMPLETE + #define CONFIG_SYS_LONGHELP + #define CONFIG_BOARD_LATE_INIT +-#define CONFIG_SYS_MAXARGS 16 ++#define CONFIG_SYS_MAXARGS 32 + #define CONFIG_SYS_CBSIZE 2048 + #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + \ + sizeof(CONFIG_SYS_PROMPT) + 16) +-- +1.7.9.5 + diff --git a/recipes-bsp/u-boot/u-boot-xlnx/zynq_common-Add-uEnv.txt-boot-environment-load-suppo.patch b/recipes-bsp/u-boot/u-boot-xlnx/zynq_common-Add-uEnv.txt-boot-environment-load-suppo.patch new file mode 100644 index 00000000..d0c3d3e6 --- /dev/null +++ b/recipes-bsp/u-boot/u-boot-xlnx/zynq_common-Add-uEnv.txt-boot-environment-load-suppo.patch @@ -0,0 +1,72 @@ +From: Nathan Rossi +Date: Fri, 30 Aug 2013 16:13:15 +1000 +Subject: [PATCH] zynq_common: Add uEnv.txt boot environment load support + +Add support for using a uEnv.txt file for loading and or modifying the +existing boot environment during a Zynq "sdboot". If the environment +fails to load during the "sdboot" continue booting from SD normally. + +This uEnv.txt and bootenv/uenv default environment variables are based +on the implementation used in omap3_beagle.h. + +Signed-off-by: Nathan Rossi +Signed-off-by: Michal Simek +Upstream-Status: Backport +--- + include/configs/zynq_common.h | 28 ++++++++++++++++++++++------ + 1 file changed, 22 insertions(+), 6 deletions(-) + +diff --git a/include/configs/zynq_common.h b/include/configs/zynq_common.h +index 762aaca..a7cadc4 100644 +--- a/include/configs/zynq_common.h ++++ b/include/configs/zynq_common.h +@@ -237,11 +237,16 @@ + "devicetree_image=devicetree.dtb\0" \ + "bitstream_image=system.bit.bin\0" \ + "loadbit_addr=0x100000\0" \ ++ "loadbootenv_addr=0x2000000\0" \ + "kernel_size=0x500000\0" \ + "devicetree_size=0x20000\0" \ + "ramdisk_size=0x5E0000\0" \ + "fdt_high=0x20000000\0" \ + "initrd_high=0x20000000\0" \ ++ "bootenv=uEnv.txt\0" \ ++ "loadbootenv=fatload mmc 0 ${loadbootenv_addr} ${bootenv}\0" \ ++ "importbootenv=echo Importing environment from SD ...; " \ ++ "env import -t ${loadbootenv_addr} $filesize\0" \ + "mmc_loadbit_fat=echo Loading bitstream from SD/MMC/eMMC to RAM.. && " \ + "mmcinfo && " \ + "fatload mmc 0 ${loadbit_addr} ${bitstream_image} && " \ +@@ -259,12 +264,23 @@ + "echo Copying ramdisk... && " \ + "sf read 0x2000000 0x620000 ${ramdisk_size} && " \ + "bootm 0x3000000 0x2000000 0x2A00000\0" \ +- "sdboot=echo Copying Linux from SD to RAM... && " \ +- "mmcinfo && " \ +- "fatload mmc 0 0x3000000 ${kernel_image} && " \ +- "fatload mmc 0 0x2A00000 ${devicetree_image} && " \ +- "fatload mmc 0 0x2000000 ${ramdisk_image} && " \ +- "bootm 0x3000000 0x2000000 0x2A00000\0" \ ++ "uenvboot=" \ ++ "if run loadbootenv; then " \ ++ "echo Loaded environment from ${bootenv}; " \ ++ "run importbootenv; " \ ++ "fi; " \ ++ "if test -n $uenvcmd; then " \ ++ "echo Running uenvcmd ...; " \ ++ "run uenvcmd; " \ ++ "fi\0" \ ++ "sdboot=if mmcinfo; then " \ ++ "run uenvboot; " \ ++ "echo Copying Linux from SD to RAM... && " \ ++ "fatload mmc 0 0x3000000 ${kernel_image} && " \ ++ "fatload mmc 0 0x2A00000 ${devicetree_image} && " \ ++ "fatload mmc 0 0x2000000 ${ramdisk_image} && " \ ++ "bootm 0x3000000 0x2000000 0x2A00000; " \ ++ "fi\0" \ + "nandboot=echo Copying Linux from NAND flash to RAM... && " \ + "nand read 0x3000000 0x100000 ${kernel_size} && " \ + "nand read 0x2A00000 0x600000 ${devicetree_size} && " \ +-- +1.7.9.5 + diff --git a/recipes-bsp/u-boot/u-boot-xlnx_2013.01.bb b/recipes-bsp/u-boot/u-boot-xlnx_2013.01.bb new file mode 100644 index 00000000..2d302e33 --- /dev/null +++ b/recipes-bsp/u-boot/u-boot-xlnx_2013.01.bb @@ -0,0 +1,17 @@ + +# We use the revision in order to avoid having to fetch it from the +# repo during parse +# Corresponds to xilinx-v14.5 tag +SRCREV = "20a6cdd301941b97961c9c5425b5fbb771321aac" +PV = "v2013.01${XILINX_EXTENSION}+git${SRCPV}" +PR = "r1" + +include u-boot-xlnx.inc + +SRC_URI_append += " \ + file://microblaze_bootm_Add_support_for_loading_initrd.patch \ + file://microblaze_bootm_Fix_coding_style_issues.patch \ + file://microblaze_Fix_coding_style_for_bootb.patch \ + file://zynq_common-Add-uEnv.txt-boot-environment-load-suppo.patch \ + file://zynq-Increase-number-of-arguments.patch \ + " diff --git a/recipes-bsp/u-boot/u-boot-xlnx_2013.07.bb b/recipes-bsp/u-boot/u-boot-xlnx_2013.07.bb new file mode 100644 index 00000000..8ec99eb0 --- /dev/null +++ b/recipes-bsp/u-boot/u-boot-xlnx_2013.07.bb @@ -0,0 +1,12 @@ +# Revision corresponds to commit after 2013.07 merge +# in u-boot-xlnx.git +SRCREV = "f40924452f947fbd6886eaa677c1b0bd47edfcf5" +PV = "v2013.07${XILINX_EXTENSION}+git${SRCPV}" +PR = "r1" + +include u-boot-xlnx.inc + +SRC_URI_append += " \ + file://zynq_common-Add-uEnv.txt-boot-environment-load-suppo.patch \ + file://zynq-Increase-number-of-arguments.patch \ + " diff --git a/recipes-bsp/u-boot/u-boot-xlnx_git.bb b/recipes-bsp/u-boot/u-boot-xlnx_git.bb new file mode 100644 index 00000000..1ba3e694 --- /dev/null +++ b/recipes-bsp/u-boot/u-boot-xlnx_git.bb @@ -0,0 +1,29 @@ +# This recipe allows for a 'bleeding edge' u-boot-xlnx build. +# Since this tree is frequently updated, AUTOREV is used to track its contents. +# +# To enable this recipe, set +# PREFERRED_VERSION_u-boot-xlnx ?= "${UBOOT_XLNX_DEV_BRANCH}" +# Alternatively to track and build master branch instead, set +# UBOOT_XLNX_DEV_BRANCH ?= "master" +# PREFERRED_VERSION_u-boot-xlnx ?= "${UBOOT_XLNX_DEV_BRANCH}" + +UBOOT_XLNX_DEV_BRANCH ?= "master-next" + +include u-boot-xlnx.inc + +LIC_FILES_CHKSUM = "file://README;beginline=1;endline=6;md5=157ab8408beab40cd8ce1dc69f702a6c" + +SRC_URI = "git://github.com/Xilinx/u-boot-xlnx.git;protocol=https;branch=${UBOOT_XLNX_DEV_BRANCH}" + +# Set default SRCREVs. SRCREVs statically set to prevent network access during +# parsing. +# AUTOREV is set in the anonymous python routine and resolved when the variables +# are finalized. +SRCREV="f40924452f947fbd6886eaa677c1b0bd47edfcf5" + +python () { + d.setVar("SRCREV", "${AUTOREV}") +} + +PR = "r0" +PV = "${UBOOT_XLNX_DEV_BRANCH}${XILINX_EXTENSION}+git" -- cgit v1.2.3-54-g00ecf