From b5e4b37bff4749b22af6b8c94b5af7a654bb2b35 Mon Sep 17 00:00:00 2001 From: Nathan Rossi Date: Wed, 6 Jan 2016 16:49:34 +1000 Subject: u-boot-extra.inc: Retire use of this configuration framework This is only used by MicroBlaze targets for U-Boot, and due to U-Boot moving to Device Model this is no longer sufficent to configure U-Boot. Instead support for MicroBlaze must be added by patches to U-Boot with partial DM and xparameters support. Signed-off-by: Nathan Rossi --- recipes-bsp/u-boot/u-boot-extra.inc | 52 ----------------------------------- recipes-bsp/u-boot/u-boot-xlnx-dev.bb | 1 - 2 files changed, 53 deletions(-) delete mode 100644 recipes-bsp/u-boot/u-boot-extra.inc (limited to 'recipes-bsp') diff --git a/recipes-bsp/u-boot/u-boot-extra.inc b/recipes-bsp/u-boot/u-boot-extra.inc deleted file mode 100644 index ff824d85..00000000 --- a/recipes-bsp/u-boot/u-boot-extra.inc +++ /dev/null @@ -1,52 +0,0 @@ - -inherit xilinx-utils - -# 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 -python do_configmk_generate () { - import re, sys, os, shutil - - machine_xparameters = d.getVar("UBOOT_XPARAMETERS", True) - - if machine_xparameters and os.path.exists(machine_xparameters): - boardpath = os.path.join("board", "xilinx", "microblaze-generic") - configmk = os.path.join(d.getVar("S", True), boardpath, "config.mk") - xparameters = os.path.join(d.getVar("S", True), boardpath, "xparameters.h") - - shutil.copyfile(machine_xparameters, xparameters) - - # Search the xparameters.h file for the RAM base addr and size. - ram = None - with open(machine_xparameters, "r") as f: - filedata = f.read() - ramstart = re.search("XILINX_RAM_START.*?(0x.*)", filedata) - ramsize = re.search("XILINX_RAM_SIZE.*?(0x.*)", filedata) - if ramstart and ramsize: - ram = (int(ramstart.group(1), 16), int(ramsize.group(1), 16)) - - # build up the config.mk file from known info - with open(configmk, "wb") as f: - f.write("# This file is generated by the meta-xilinx layers.\n") - f.write("\n") - - for i in d.getVar("TUNE_CCARGS", True).split(): - f.write("PLATFORM_CCPFLAGS += %s\n" % i) - f.write("\n") - - if ram != None: - base_offset = ram[0] + ram[1] - 0x400000 - f.write("TEXT_BASE = 0x%x\n" % base_offset) - f.write("CONFIG_SYS_TEXT_BASE = 0x%x\n" % base_offset) -} -addtask configmk_generate before do_configure after do_unpack - diff --git a/recipes-bsp/u-boot/u-boot-xlnx-dev.bb b/recipes-bsp/u-boot/u-boot-xlnx-dev.bb index 9fa22fed..50bbf543 100644 --- a/recipes-bsp/u-boot/u-boot-xlnx-dev.bb +++ b/recipes-bsp/u-boot/u-boot-xlnx-dev.bb @@ -7,7 +7,6 @@ UBRANCH ?= "master" include u-boot-xlnx.inc -include u-boot-extra.inc include u-boot-spl-zynq-init.inc LIC_FILES_CHKSUM = "file://README;beginline=1;endline=6;md5=157ab8408beab40cd8ce1dc69f702a6c" -- cgit v1.2.3-54-g00ecf