summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2018-05-30 22:10:28 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2018-05-30 22:20:47 +0200
commit811a443d209a69da71109204b013f5526043143a (patch)
treeb3e680c2ed20e013477bedcb9e216a89866cb088
parentc553cba4053023bcb51b4a13681a69d484f771a9 (diff)
downloadptxdist-811a443d209a69da71109204b013f5526043143a.tar.gz
ptxdist-811a443d209a69da71109204b013f5526043143a.tar.xz
remove unmaintained microblaze stuff
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r--platforms/image_xlblob.in34
-rw-r--r--platforms/kernel.in5
-rw-r--r--platforms/microblaze.in36
-rw-r--r--platforms/xlbsp_softcpu.in25
-rw-r--r--rules/host-xl-tools.in14
-rw-r--r--rules/host-xl-tools.make32
-rw-r--r--rules/post/image_xlblob.make73
-rw-r--r--rules/post/ptxd_make_xilinx_bsp.make41
-rw-r--r--rules/pre/Machine.make74
-rw-r--r--scripts/lib/ptxd_lib_00-init.sh3
-rw-r--r--scripts/lib/ptxd_make_00-init.sh16
-rw-r--r--scripts/lib/ptxd_make_xilinx_bsp.sh148
12 files changed, 1 insertions, 500 deletions
diff --git a/platforms/image_xlblob.in b/platforms/image_xlblob.in
deleted file mode 100644
index 570ce0bee..000000000
--- a/platforms/image_xlblob.in
+++ /dev/null
@@ -1,34 +0,0 @@
-## SECTION=image
-
-menuconfig IMAGE_XLBLOB
- bool
- select HOST_XL_TOOLS
- depends on ARCH_MICROBLAZE
- prompt "Generate XLBLOB Images "
- help
- Generate a PIC executable blob tagged for XL-Boot that copies
- a image from FLASH to its linked address in RAM and executes it.
-
-if IMAGE_XLBLOB
-
-config IMAGE_XLBLOB_U_BOOT
- bool
- depends on U_BOOT
- prompt "Generate images/u-boot-xl"
- default y
- help
- Generate a PIC executable blob tagged for XL-Boot that copies
- the U-Boot image from FLASH to its linked address in RAM and
- executes it.
-
-config IMAGE_XLBLOB_KERNEL
- bool
- depends on KERNEL
- prompt "Generate images/linuximage-xl"
- default y
- help
- Generate a PIC executable blob tagged for XL-Boot that copies
- the Linux kernel image from FLASH to its linked address in RAM
- and executes it.
-
-endif
diff --git a/platforms/kernel.in b/platforms/kernel.in
index 44d09c050..73a225a2e 100644
--- a/platforms/kernel.in
+++ b/platforms/kernel.in
@@ -101,7 +101,6 @@ config KERNEL_ARCH_STRING
default "blackfin" if ARCH_BLACKFIN
default "m68k" if ARCH_M68K
default "sparc" if ARCH_SPARC
- default "microblaze" if ARCH_MICROBLAZE
default "mips" if ARCH_MIPS
default "mips" if ARCH_MIPSEL
default "cris" if ARCH_CRIS
@@ -167,7 +166,6 @@ choice
help
This is the target to get the kernel image as an raw uncompressed
binary file.
-
config KERNEL_IMAGE_SIMPLE
bool
prompt "simpleImage"
@@ -210,8 +208,7 @@ config KERNEL_IMAGE
default "vmImage" if KERNEL_IMAGE_VM
default "vmlinux" if KERNEL_IMAGE_VMLINUX
default "Image" if KERNEL_IMAGE_RAW
- default "simpleImage.${PTXCONF_KERNEL_IMAGE_SIMPLE_TARGET}.elf" if KERNEL_IMAGE_SIMPLE && KERNEL_ARCH_POWERPC
- default "simpleImage.${PTXCONF_KERNEL_IMAGE_SIMPLE_TARGET}" if KERNEL_IMAGE_SIMPLE && ARCH_MICROBLAZE
+ default "simpleImage.${PTXCONF_KERNEL_IMAGE_SIMPLE_TARGET}.elf" if KERNEL_IMAGE_SIMPLE
config KERNEL_DTC
bool
diff --git a/platforms/microblaze.in b/platforms/microblaze.in
deleted file mode 100644
index d43fc51db..000000000
--- a/platforms/microblaze.in
+++ /dev/null
@@ -1,36 +0,0 @@
-## SECTION=architecture_options
-
-menu "microblaze options "
-depends on ARCH_MICROBLAZE
-
-config ARCH_MICROBLAZE_HAVE_XLBSP
- prompt "Xilinx BSP (TPOS)"
- bool
- default y
- help
- The Xilinx BSP (shortly "xlbsp") is part of a specific OSELAS.BSP()
- and consits of different automatically generated files from the
- Xilinx FPGA design. All files for the xlbsp have to be copied from
- Xilinx FPGA design project into the OSELAS.BSP() platforms directory
- ${PTXDIST_PLATFORMCONFIGDIR}/platforms/xlbsp. Then make a link in
- OSELAS.BSP() platforms directory:
-
- xlbsp_softcpu.in -> xlbsp/Kconfig.auto
-
- You have to copy all auto generated files from Xilinx BSP "Third
- Party OS (TPOS)" to xlbsp in your OSELAS.BSP(). To get TPOS you have
- to include the EDK user repository from MB-Ref into your Xilinx FPGA
- design flow.
-
- See: http://gitorious.org/mbref/mbref
- or: http://www.li-pro.de/xilinx_mb/mbref/start
-
-if ARCH_MICROBLAZE_HAVE_XLBSP
-
-menu "SoftCPU features"
-source "generated/xlbsp_softcpu.in"
-endmenu
-
-endif
-
-endmenu
diff --git a/platforms/xlbsp_softcpu.in b/platforms/xlbsp_softcpu.in
deleted file mode 100644
index a8f6b9633..000000000
--- a/platforms/xlbsp_softcpu.in
+++ /dev/null
@@ -1,25 +0,0 @@
-## SECTION=xlbsp_softcpu
-
-comment "------------------------------------"
-comment "Xilinx BSP Configuration"
-comment "------------------------------------"
-comment ""
-comment "Do you missing configuration?"
-comment ""
-comment "You need the file 'Kconfig.auto'"
-comment "from your Xilinx BSP directory."
-comment ""
-comment "Copy this file into the Xilinx BSP"
-comment "configuration path, normaly at:"
-comment "'${PTXDIST_WORKSPACE}/platforms/xlbsp' or"
-comment "'${PTXDIST_PLATFORMCONFIGDIR}/platforms/xlbsp'."
-comment ""
-comment "HINT: In some cases, the 'SECTION'"
-comment "comment in Kconfig.auto is missing."
-comment "This leads to the same error. If so"
-comment "adding the comment line on top of"
-comment "the file Kconfig.auto:"
-comment ""
-comment "## SECTION=xlbsp_softcpu"
-comment ""
-comment "------------------------------------"
diff --git a/rules/host-xl-tools.in b/rules/host-xl-tools.in
deleted file mode 100644
index 2e1a14720..000000000
--- a/rules/host-xl-tools.in
+++ /dev/null
@@ -1,14 +0,0 @@
-## SECTION=hosttools_noprompt
-## SECTION=hosttools_platform
-
-config HOST_XL_TOOLS
- tristate
- default ALLYES
- help
- Xilinx tools provides a collection of small host programs
- you need for Xilinx cross development especially MicroBlaze
- development.
-
- If you want to generate especially payload blobs for the
- XL-Boot you will need the program mkxlblob from this tool
- collection.
diff --git a/rules/host-xl-tools.make b/rules/host-xl-tools.make
deleted file mode 100644
index 2efd1650c..000000000
--- a/rules/host-xl-tools.make
+++ /dev/null
@@ -1,32 +0,0 @@
-# -*-makefile-*-
-#
-# Copyright (C) 2011-2012 by Stephan Linz <linz@li-pro.net>
-#
-# See CREDITS for details about who has contributed to this project.
-#
-# For further information about the PTXdist project and license conditions
-# see the README file.
-#
-
-#
-# We provide this package
-#
-HOST_PACKAGES-$(PTXCONF_HOST_XL_TOOLS) += host-xl-tools
-
-#
-# Paths and names
-#
-HOST_XL_TOOLS_VERSION := 1.1.1
-HOST_XL_TOOLS_MD5 := 256e3545f5b812898d2230a504359903
-HOST_XL_TOOLS := xl-tools-$(HOST_XL_TOOLS_VERSION)
-HOST_XL_TOOLS_SUFFIX := tar.bz2
-HOST_XL_TOOLS_URL := http://www.li-pro.de/_media/projects/embedded/xilinx_mb/xl-tools/$(HOST_XL_TOOLS).$(HOST_XL_TOOLS_SUFFIX)
-HOST_XL_TOOLS_SOURCE := $(SRCDIR)/$(HOST_XL_TOOLS).$(HOST_XL_TOOLS_SUFFIX)
-HOST_XL_TOOLS_DIR := $(HOST_BUILDDIR)/$(HOST_XL_TOOLS)
-
-#
-# autoconf
-#
-HOST_XL_TOOLS_CONF_TOOL := autoconf
-
-# vim: syntax=make
diff --git a/rules/post/image_xlblob.make b/rules/post/image_xlblob.make
deleted file mode 100644
index 1de985348..000000000
--- a/rules/post/image_xlblob.make
+++ /dev/null
@@ -1,73 +0,0 @@
-# -*-makefile-*-
-#
-# Copyright (C) 2011 by Stephan Linz <linz@li-pro.net>
-#
-# See CREDITS for details about who has contributed to this project.
-#
-# For further information about the PTXdist project and license conditions
-# see the README file.
-#
-
-ifdef PTXCONF_IMAGE_XLBLOB_U_BOOT
-
-U_BOOT_PAYLOAD := $(U_BOOT_DIR)/u-boot
-U_BOOT_PAYLOAD_TYPE := U-Boot
-U_BOOT_PAYLOAD_NAME := U-Boot-$(U_BOOT_VERSION)
-
-SEL_ROOTFS-$(PTXCONF_U_BOOT) += $(IMAGEDIR)/u-boot-xl.bin
-SEL_ROOTFS-$(PTXCONF_U_BOOT) += $(IMAGEDIR)/u-boot-xl.srec
-SEL_ROOTFS-$(PTXCONF_U_BOOT) += $(IMAGEDIR)/u-boot-xl.elf
-
-$(U_BOOT_DIR)/u-boot-xl.bin \
-$(U_BOOT_DIR)/u-boot-xl.srec \
-$(U_BOOT_DIR)/u-boot-xl.elf: $(STATEDIR)/u-boot.xlblob
-
-$(IMAGEDIR)/u-boot-xl.%: $(U_BOOT_DIR)/u-boot-xl.% $(STATEDIR)/u-boot.targetinstall
- @echo -n "Creating '$(notdir $(@))' from '$(notdir $(<))'..."
- @install -m 644 "$(<)" "$(@)"
- @echo "done."
-
-endif
-
-ifdef PTXCONF_IMAGE_XLBLOB_KERNEL
-
-KERNEL_PAYLOAD := $(KERNEL_IMAGE_PATH_y)
-KERNEL_PAYLOAD_TYPE := Linux
-KERNEL_PAYLOAD_NAME := Linux-$(KERNEL_VERSION)
-
-SEL_ROOTFS-$(PTXCONF_IMAGE_KERNEL) += $(IMAGEDIR)/linuximage-xl.bin
-SEL_ROOTFS-$(PTXCONF_IMAGE_KERNEL) += $(IMAGEDIR)/linuximage-xl.srec
-SEL_ROOTFS-$(PTXCONF_IMAGE_KERNEL) += $(IMAGEDIR)/linuximage-xl.elf
-
-$(KERNEL_IMAGE_PATH_y)-xl.bin \
-$(KERNEL_IMAGE_PATH_y)-xl.srec \
-$(KERNEL_IMAGE_PATH_y)-xl.elf: $(STATEDIR)/kernel.xlblob
-
-ifdef PTXCONF_IMAGE_KERNEL_INITRAMFS
-$(IMAGEDIR)/linuximage-xl.bin \
-$(IMAGEDIR)/linuximage-xl.srec \
-$(IMAGEDIR)/linuximage-xl.elf: $(STATEDIR)/image_kernel.compile
-endif
-
-$(IMAGEDIR)/linuximage-xl.%: $(KERNEL_IMAGE_PATH_y)-xl.% $(STATEDIR)/kernel.targetinstall
- @echo -n "Creating '$(notdir $(@))' from '$(notdir $(<))'..."
- @install -m 644 "$(<)" "$(@)"
- @echo "done."
-
-endif
-
-$(STATEDIR)/%.xlblob: $(STATEDIR)/%.compile
- @$(call targetinfo)
- @$(call xilinx/xlblob, $(PTX_MAP_TO_PACKAGE_$(*)), \
- $($(PTX_MAP_TO_PACKAGE_$(*))_DIR), \
- $($(PTX_MAP_TO_PACKAGE_$(*))_PAYLOAD), \
- $($(PTX_MAP_TO_PACKAGE_$(*))_PAYLOAD_TYPE), \
- $($(PTX_MAP_TO_PACKAGE_$(*))_PAYLOAD_NAME))
- @$(call touch)
-
-xilinx/xlblob = \
- $(call world/env, $(1)) \
- cd $(2) && $(CROSS_ENV) \
- $(PTXCONF_SYSROOT_HOST)/bin/mkxlblob -t $(4) -n $(5) -o $(3)-xl $(3)
-
-# vim: syntax=make
diff --git a/rules/post/ptxd_make_xilinx_bsp.make b/rules/post/ptxd_make_xilinx_bsp.make
deleted file mode 100644
index 3ce869569..000000000
--- a/rules/post/ptxd_make_xilinx_bsp.make
+++ /dev/null
@@ -1,41 +0,0 @@
-# -*-makefile-*-
-#
-# Copyright (C) 2011 by Stephan Linz <linz@li-pro.net>
-#
-# See CREDITS for details about who has contributed to this project.
-#
-# For further information about the PTXdist project and license conditions
-# see the README file.
-#
-
-ifdef PTXCONF_ARCH_MICROBLAZE
-
-ifdef PTXCONF_ARCH_MICROBLAZE_HAVE_XLBSP
-$(STATEDIR)/u-boot.prepare: $(STATEDIR)/u-boot.xlbsp
-endif
-
-ifdef PTXCONF_ARCH_MICROBLAZE_HAVE_XLBSP
-$(STATEDIR)/kernel.prepare: $(STATEDIR)/kernel.xlbsp
-endif
-
-ifdef PTXCONF_KERNEL_IMAGE_SIMPLE
-SEL_ROOTFS-$(PTXCONF_IMAGE_KERNEL) += $(IMAGEDIR)/linuximage.ub
-endif
-
-$(IMAGEDIR)/linuximage.ub: $(KERNEL_IMAGE_PATH_y).ub $(IMAGEDIR)/linuximage
- @echo -n "Creating '$(notdir $(@))' from '$(notdir $(<))'..."
- @install -m 644 "$(<)" "$(@)"
- @echo "done."
-
-endif
-
-$(STATEDIR)/%.xlbsp: $(STATEDIR)/%.extract
- @$(call targetinfo)
- @$(call xilinx/bsp, $(PTX_MAP_TO_PACKAGE_$(*)))
- @$(call touch)
-
-xilinx/bsp = \
- $(call world/env, $(1)) \
- ptxd_make_xilinx_bsp $(1) $(2)
-
-# vim: syntax=make
diff --git a/rules/pre/Machine.make b/rules/pre/Machine.make
deleted file mode 100644
index 694b0c7c1..000000000
--- a/rules/pre/Machine.make
+++ /dev/null
@@ -1,74 +0,0 @@
-# -*-makefile-*-
-#
-# This file contains global machine/cpu dependent definitions.
-#
-# Copyright (C) 2011 by Stephan Linz <linz@li-pro.net>
-#
-# See CREDITS for details about who has contributed to this project.
-#
-# For further information about the PTXdist project and license conditions
-# see the README file.
-#
-
-# ----------------------------------------------------------------------------
-# Machine & CPU Defines (mainly SoftCPU)
-# ----------------------------------------------------------------------------
-
-#
-# Xilinx MicroBlaze, SoftCPU inside a FPGA
-#
-ifdef PTXCONF_ARCH_MICROBLAZE
-
- # Use defines by Xilinx BSP (borrowed from Linux kernel)
- ifdef PTXCONF_ARCH_MICROBLAZE_HAVE_XLBSP
-
- # What CPU vesion are we building for, and crack it open
- # as major.minor.rev
- CPU_VER := $(shell echo $(PTXCONF_XILINX_MICROBLAZE0_HW_VER))
- CPU_MAJOR := $(shell echo $(CPU_VER) | cut -d '.' -f 1)
- CPU_MINOR := $(shell echo $(CPU_VER) | cut -d '.' -f 2)
- CPU_REV := $(shell echo $(CPU_VER) | cut -d '.' -f 3)
-
- export CPU_VER CPU_MAJOR CPU_MINOR CPU_REV
-
- # Use cpu-related PTXCONF_ vars to set compile options.
- # The various PTXCONF_XILINX cpu features options are integers 0/1/2...
- # rather than bools y/n
-
- # Work out HW multiplier support. This is icky.
- # 1. Spartan2 has no HW multipliers.
- # 2. MicroBlaze v3.x always uses them, except in Spartan 2
- # 3. All other FPGa/CPU ver combos, we can trust the PTXCONF_ settings
- ifeq (,$(findstring spartan2,$(PTXCONF_XILINX_MICROBLAZE0_FAMILY)))
- ifeq ($(CPU_MAJOR),3)
- CPUFLAGS-1 += -mno-xl-soft-mul
- else
- # USE_HW_MUL can be 0, 1, or 2, defining a heirarchy of HW Mul support.
- CPUFLAGS-$(subst 1,,$(PTXCONF_XILINX_MICROBLAZE0_USE_HW_MUL)) += -mxl-multiply-high
- CPUFLAGS-$(PTXCONF_XILINX_MICROBLAZE0_USE_HW_MUL) += -mno-xl-soft-mul
- endif
- endif
- CPUFLAGS-$(PTXCONF_XILINX_MICROBLAZE0_USE_DIV) += -mno-xl-soft-div
- CPUFLAGS-$(PTXCONF_XILINX_MICROBLAZE0_USE_BARREL) += -mxl-barrel-shift
- CPUFLAGS-$(PTXCONF_XILINX_MICROBLAZE0_USE_PCMP_INSTR) += -mxl-pattern-compare
-
- ifdef PTXCONF_HAS_HARDFLOAT
- # XILINX_MICROBLAZE0_USE_FPU can be 0 (NONE), 1 (BASIC), or 2 (EXTENDED)
- CPUFLAGS-$(PTXCONF_XILINX_MICROBLAZE0_USE_FPU) += -mhard-float
- CPUFLAGS-$(subst 1,,$(PTXCONF_XILINX_MICROBLAZE0_USE_FPU)) += -mxl-float-convert
- CPUFLAGS-$(subst 1,,$(PTXCONF_XILINX_MICROBLAZE0_USE_FPU)) += -mxl-float-sqrt
- endif
-
- CPUFLAGS-1 += -mcpu=v$(CPU_VER)
-
- # r31 holds current-give me pointer to task,
- # generated code should never refer to it
- CPUFLAGS := -ffixed-r31 $(CPUFLAGS-1) $(CPUFLAGS-2)
-
- PTXCONF_TARGET_EXTRA_CFLAGS += $(CPUFLAGS)
- PTXCONF_TARGET_EXTRA_CXXFLAGS += $(CPUFLAGS)
-
- endif # PTXCONF_ARCH_MICROBLAZE_HAVE_XLBSP
-
-endif # PTXCONF_ARCH_MICROBLAZE
-
diff --git a/scripts/lib/ptxd_lib_00-init.sh b/scripts/lib/ptxd_lib_00-init.sh
index 98a9261f8..d14781a56 100644
--- a/scripts/lib/ptxd_lib_00-init.sh
+++ b/scripts/lib/ptxd_lib_00-init.sh
@@ -78,9 +78,6 @@ ptxd_init_ptxdist_path() {
PTXDIST_PATH_SCRIPTS="${PTXDIST_PATH//://scripts:}"
export PTXDIST_PATH_SCRIPTS
-
- PTXDIST_PATH_PLATFORMS_XLBSP="${PTXDIST_PATH_PLATFORMS//://xlbsp:}"
- export PTXDIST_PATH_PLATFORMS_XLBSP
}
diff --git a/scripts/lib/ptxd_make_00-init.sh b/scripts/lib/ptxd_make_00-init.sh
index 23d937f8d..b2cae72f5 100644
--- a/scripts/lib/ptxd_make_00-init.sh
+++ b/scripts/lib/ptxd_make_00-init.sh
@@ -36,22 +36,6 @@ ptxd_init_arch() {
;;
esac
;;
-
- microblaze)
- local target="$(ptxd_get_ptxconf PTXCONF_GNU_TARGET)"
-
- case "${target}" in
- microblaze-*gnu)
- ipkg_arch=mbeb
- ;;
- microblazeel-*gnu)
- ipkg_arch=mbel
- ;;
- *)
- ipkg_arch=mb
- ;;
- esac
- ;;
esac
PTXDIST_IPKG_ARCH_STRING="${ipkg_arch}"
diff --git a/scripts/lib/ptxd_make_xilinx_bsp.sh b/scripts/lib/ptxd_make_xilinx_bsp.sh
deleted file mode 100644
index 117f5318f..000000000
--- a/scripts/lib/ptxd_make_xilinx_bsp.sh
+++ /dev/null
@@ -1,148 +0,0 @@
-#!/bin/bash
-#
-# Copyright (C) 2011-2012 by Stephan Linz <linz@li-pro.net>
-#
-# See CREDITS for details about who has contributed to this project.
-#
-# For further information about the PTXdist project and license conditions
-# see the README file.
-#
-
-#
-# apply project files (remove old, link new)
-#
-ptxd_make_xilinx_bsp_apply_files()
-{
- local ptx_xlbsp_dir
- local pkg_xlbsp_file
- local pkg_xlbsp_files
-
- if [ $# -ne 2 ]; then
- echo "xlbsp: ${pkg_xlbsp_apply}: missing arguments (<dir>,<filelist>)"
- return
- fi
- ptx_xlbsp_dir="${1}"
- pkg_xlbsp_files="${2}"
-
- echo "xlbsp: ${pkg_xlbsp_apply}: board '$(ptxd_print_path "${ptx_xlbsp_dir:-<none>}")'"
- pushd "${ptx_xlbsp_dir}" > /dev/null &&
- for pkg_xlbsp_file in ${pkg_xlbsp_files}; do
- echo "xlbsp: ${pkg_xlbsp_apply}: rm/ln '$(ptxd_print_path "${pkg_xlbsp_file:-<none>}")'"
-
- local pkg_file="$(basename "${pkg_xlbsp_file}")" &&
- ln -sf ${pkg_xlbsp_file} ${pkg_file}
-
- done &&
- popd > /dev/null
-}
-export -f ptxd_make_xilinx_bsp_apply_files
-
-# apply Xilinx BSP for U-Boot
-#
-ptxd_make_xilinx_bsp_apply_uboot()
-{
- local ptx_xlbsp_uboot_cfg="$(ptxd_get_ptxconf PTXCONF_U_BOOT_CONFIG)"
- local pkg_xlbsp_uboot_files="${pkg_xlbsp_dir}config.mk \
- ${pkg_xlbsp_dir}xparameters.h"
- local pkg_xlbsp_uboot_file
- local ptx_xlbsp_uboot_dir
-
- # find ptx_xlbsp_uboot_dir
- if ! ptxd_get_path "${pkg_build_dir}/board/xilinx/${ptx_xlbsp_uboot_cfg%%_config}"; then
- echo "xlbsp: ${pkg_xlbsp_apply}: no board path found"
- return
- fi
- ptx_xlbsp_uboot_dir="${ptxd_reply}"
-
- # apply files (remove old, link new)
- ptxd_make_xilinx_bsp_apply_files "${ptx_xlbsp_uboot_dir}" "${pkg_xlbsp_uboot_files}"
-}
-export -f ptxd_make_xilinx_bsp_apply_uboot
-
-#
-# apply Xilinx BSP for Linux kernel 2.x / 3.x
-#
-ptxd_make_xilinx_bsp_apply_kernel()
-{
- local ptx_xlbsp_kernel_arch="$(ptxd_get_ptxconf PTXCONF_KERNEL_ARCH_STRING)"
- local pkg_xlbsp_kernel24_files="${pkg_xlbsp_dir}auto-config.in"
- local pkg_xlbsp_kernel26_files="${pkg_xlbsp_dir}Kconfig.auto"
- local ptx_xlbsp_kernel_platform
- local pkg_xlbsp_kernel_files
- local pkg_xlbsp_kernel_file
- local ptx_xlbsp_kernel_dir
-
- # files and platform to use per version
- case "${pkg_pkg}" in
- linux-24*|linux-2.4*)
- pkg_xlbsp_kernel_files=${pkg_xlbsp_kernel24_files};
- ptx_xlbsp_kernel_platform="uclinux-auto";
- ;;
- linux-26*|linux-2.6*|linux-3*)
- pkg_xlbsp_kernel_files=${pkg_xlbsp_kernel26_files};
- ptx_xlbsp_kernel_platform="generic";
- ;;
- *)
- echo "xlbsp: ${pkg_xlbsp_apply}: unsupported kernel version: ${pkg_pkg##linux-}"
- return
- ;;
- esac
-
- # find ptx_xlbsp_kernel_dir
- if ! ptxd_get_path "${pkg_build_dir}/arch/${ptx_xlbsp_kernel_arch}/platform/${ptx_xlbsp_kernel_platform}"; then
- echo "xlbsp: ${pkg_xlbsp_apply}: no board path found"
- return
- fi
- ptx_xlbsp_kernel_dir="${ptxd_reply}"
-
- # apply files (remove old, link new)
- ptxd_make_xilinx_bsp_apply_files "${ptx_xlbsp_kernel_dir}" "${pkg_xlbsp_kernel_files}"
-}
-export -f ptxd_make_xilinx_bsp_apply_kernel
-
-#
-# generic apply Xilinx BSP function
-#
-ptxd_make_xilinx_bsp_apply()
-{
- local pkg_xlbsp_dir
- local pkg_xlbsp_apply
-
- ptxd_in_path PTXDIST_PATH_PLATFORMS_XLBSP || return
- pkg_xlbsp_dir="${ptxd_reply}"
-
- # files to use per package
- case "${pkg_pkg}" in
- u-boot*)
- pkg_xlbsp_apply="uboot";
- ;;
- linux*)
- pkg_xlbsp_apply="kernel";
- ;;
- *)
- echo "xlbsp: unsupported package: ${pkg_pkg}"
- return
- ;;
- esac
-
- echo "pkg_xlbsp_dir: '$(ptxd_print_path "${pkg_xlbsp_dir:-<none>}")'"
- echo "pkg_build_dir: '$(ptxd_print_path "${pkg_build_dir:-<none>}")'"
- echo
-
- # apply Xilinx BSP per package if files are available
- if [ -n "${pkg_xlbsp_apply}" ]; then
- echo "xlbsp: ${pkg_xlbsp_apply}: apply '$(ptxd_print_path "${pkg_xlbsp_dir:-<none>}")'"
- "ptxd_make_xilinx_bsp_apply_${pkg_xlbsp_apply}" || return
- echo -e "xlbsp: ${pkg_xlbsp_apply}: done\n"
- fi
-}
-export -f ptxd_make_xilinx_bsp_apply
-
-#
-# copy and adjust per package
-#
-ptxd_make_xilinx_bsp() {
- ptxd_make_world_init || return
- ptxd_make_xilinx_bsp_apply
-}
-export -f ptxd_make_xilinx_bsp