diff options
| author | Andrea Galbusera <gizero@gmail.com> | 2016-10-31 00:10:11 +0100 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2016-11-01 08:49:10 -0700 |
| commit | ab2ee2812670be650d6a722de08dff9bf05131f8 (patch) | |
| tree | 4300d05171154a6c856cc78ff1c37e1d371c8e59 | |
| parent | ad40e0d1262dfc9f7924e7212adef8f316ce5584 (diff) | |
| download | meta-altera-ab2ee2812670be650d6a722de08dff9bf05131f8.tar.gz | |
drop unsused u-boot-socfpga.inc
None of the available u-boot recipes is requiring this file anymore: drop it
| -rw-r--r-- | recipes-bsp/u-boot/u-boot-socfpga.inc | 89 |
1 files changed, 0 insertions, 89 deletions
diff --git a/recipes-bsp/u-boot/u-boot-socfpga.inc b/recipes-bsp/u-boot/u-boot-socfpga.inc deleted file mode 100644 index 39d9343..0000000 --- a/recipes-bsp/u-boot/u-boot-socfpga.inc +++ /dev/null | |||
| @@ -1,89 +0,0 @@ | |||
| 1 | DESCRIPTION = "U-boot bootloader for Altera socfpga" | ||
| 2 | HOMEPAGE = "http://www.altera.com/" | ||
| 3 | SECTION = "bootloaders" | ||
| 4 | PROVIDES += " virtual/bootloader u-boot" | ||
| 5 | |||
| 6 | inherit deploy | ||
| 7 | |||
| 8 | PARALLEL_MAKE="" | ||
| 9 | PACKAGES="" | ||
| 10 | |||
| 11 | # the following variables can be passed from the env | ||
| 12 | # using BB_ENV_WHITELIST to override the defaults | ||
| 13 | UBOOT_REPO ?= "git://github.com/altera-opensource/u-boot-socfpga.git" | ||
| 14 | UBOOT_BRANCH ?= "socfpga_v${PV}" | ||
| 15 | UBOOT_PROT ?= "http" | ||
| 16 | UBOOT_TAG ?= "${AUTOREV}" | ||
| 17 | |||
| 18 | SRC_URI = "${UBOOT_REPO};protocol=${UBOOT_PROT};branch=${UBOOT_BRANCH}" | ||
| 19 | LIC_FILES_CHKSUM = "file://${S}/COPYING;startline=26;md5=1707d6db1d42237583f50183a5651ecb" | ||
| 20 | SRCREV_pn-${PN} = "${UBOOT_TAG}" | ||
| 21 | |||
| 22 | S = "${WORKDIR}/git" | ||
| 23 | |||
| 24 | # GCC 4.5.1 builds unusable binaries using -Os, remove it from OPTFLAGS | ||
| 25 | EXTRA_OEMAKE = 'CROSS_COMPILE=${TARGET_PREFIX} CC="${TARGET_PREFIX}gcc ${TOOLCHAIN_OPTIONS}" V=1' | ||
| 26 | |||
| 27 | python () { | ||
| 28 | if not d.getVar("UBOOT_MACHINE", True): | ||
| 29 | PN = d.getVar("PN", True) | ||
| 30 | FILE = os.path.basename(d.getVar("FILE", True)) | ||
| 31 | bb.debug(1, "To build %s, see %s for instructions on \ | ||
| 32 | setting up your machine config" % (PN, FILE)) | ||
| 33 | raise bb.parse.SkipPackage("because UBOOT_MACHINE is not set") | ||
| 34 | } | ||
| 35 | |||
| 36 | UBOOT_ELF ?= "u-boot-${MACHINE}-${PV}-${PR}" | ||
| 37 | UBOOT_IMAGE ?= "u-boot-${MACHINE}-${PV}-${PR}.bin" | ||
| 38 | UBOOT_IMAGE_UIMAGE ?= "u-boot-${MACHINE}-${PV}-${PR}.img" | ||
| 39 | UBOOT_IMAGE_SPL ?= "u-boot-spl-${MACHINE}-${PV}-${PR}.bin" | ||
| 40 | UBOOT_ELF_SPL ?= "u-boot-spl-${MACHINE}-${PV}-${PR}" | ||
| 41 | UBOOT_BINARY ?= "u-boot.bin" | ||
| 42 | UBOOT_SYMLINK_ELF ?= "u-boot-${MACHINE}" | ||
| 43 | UBOOT_SYMLINK ?= "u-boot-${MACHINE}.bin" | ||
| 44 | UBOOT_SYMLINK_UIMAGE ?= "u-boot-${MACHINE}.img" | ||
| 45 | UBOOT_SYMLINK_SPL ?= "u-boot-spl-${MACHINE}.bin" | ||
| 46 | UBOOT_SYMLINK_ELF_SPL ?= "u-boot-spl-${MACHINE}" | ||
| 47 | UBOOT_MAKE_TARGET ?= "all" | ||
| 48 | INC_PR = "r0" | ||
| 49 | |||
| 50 | LICENSE = "GPLv2+" | ||
| 51 | |||
| 52 | do_compile () { | ||
| 53 | unset LDFLAGS | ||
| 54 | unset CFLAGS | ||
| 55 | unset CPPFLAGS | ||
| 56 | oe_runmake ${UBOOT_MACHINE} | ||
| 57 | oe_runmake ${UBOOT_MAKE_TARGET} | ||
| 58 | } | ||
| 59 | |||
| 60 | do_install () { | ||
| 61 | install -d ${D}/boot | ||
| 62 | install ${S}/${UBOOT_BINARY} ${D}/boot/${UBOOT_IMAGE} | ||
| 63 | install ${S}/spl/u-boot-spl ${D}/boot/${UBOOT_ELF_SPL} | ||
| 64 | install ${S}/u-boot ${D}/boot/${UBOOT_ELF} | ||
| 65 | ln -sf ${UBOOT_IMAGE} ${D}/boot/${UBOOT_BINARY} | ||
| 66 | } | ||
| 67 | |||
| 68 | FILES_${PN} = "/boot" | ||
| 69 | |||
| 70 | do_deploy () { | ||
| 71 | install ${S}/u-boot.bin ${DEPLOYDIR}/${UBOOT_IMAGE} | ||
| 72 | install ${S}/u-boot.img ${DEPLOYDIR}/${UBOOT_IMAGE_UIMAGE} | ||
| 73 | install ${S}/spl/u-boot-spl.bin ${DEPLOYDIR}/${UBOOT_IMAGE_SPL} | ||
| 74 | install ${S}/spl/u-boot-spl ${DEPLOYDIR}/${UBOOT_ELF_SPL} | ||
| 75 | install ${S}/u-boot ${DEPLOYDIR}/${UBOOT_ELF} | ||
| 76 | |||
| 77 | cd ${DEPLOYDIR} | ||
| 78 | rm -f ${UBOOT_SYMLINK} | ||
| 79 | ln -sf ${UBOOT_IMAGE} ${UBOOT_SYMLINK} | ||
| 80 | rm -f ${UBOOT_SYMLINK_UIMAGE} | ||
| 81 | ln -sf ${UBOOT_IMAGE_UIMAGE} ${UBOOT_SYMLINK_UIMAGE} | ||
| 82 | rm -f ${UBOOT_SYMLINK_SPL} | ||
| 83 | ln -sf ${UBOOT_IMAGE_SPL} ${UBOOT_SYMLINK_SPL} | ||
| 84 | rm -f ${UBOOT_SYMLINK_ELF_SPL} | ||
| 85 | ln -sf ${UBOOT_ELF_SPL} ${UBOOT_SYMLINK_ELF_SPL} | ||
| 86 | rm -f ${UBOOT_SYMLINK_ELF} | ||
| 87 | ln -sf ${UBOOT_ELF} ${UBOOT_SYMLINK_ELF} | ||
| 88 | } | ||
| 89 | addtask deploy before do_build after do_compile | ||
