2013-10-23 19:41:14 +02:00
|
|
|
# Copyright (C) 2013 Tomas Novotny <novotny@rehivetech.com>
|
|
|
|
# Released under BSD-2-Clause or MIT license
|
|
|
|
DESCRIPTION = "Handler for Allwinner's FEX files"
|
|
|
|
LICENSE = "CC0-1.0"
|
|
|
|
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/${LICENSE};md5=0ceb3372c9595f0a8067e55da801e4a1"
|
|
|
|
DEPENDS = "sunxi-tools-native"
|
2014-04-23 16:46:51 +02:00
|
|
|
PV = "1.1+git${SRCPV}"
|
|
|
|
PR = "r0"
|
2013-10-23 19:41:14 +02:00
|
|
|
|
|
|
|
SRC_URI = "git://github.com/linux-sunxi/sunxi-boards.git;protocol=git"
|
2014-04-23 16:46:51 +02:00
|
|
|
# Increase PV with SRCREV change
|
2014-08-25 21:27:14 +02:00
|
|
|
SRCREV = "442f0669fec0689dda3e529bcd8be9e554868b5f"
|
2013-10-23 19:41:14 +02:00
|
|
|
|
|
|
|
S = "${WORKDIR}/git"
|
2013-11-15 18:38:45 +01:00
|
|
|
SUNXI_FEX_FILE_mele = "sys_config/a10/mele_a1000.fex"
|
2013-12-02 15:19:18 +01:00
|
|
|
SUNXI_FEX_FILE_meleg = "sys_config/a10/mele_a1000g.fex"
|
2013-10-23 19:41:14 +02:00
|
|
|
SUNXI_FEX_FILE_olinuxino-a10s = "sys_config/a10s/a10s-olinuxino-m.fex"
|
2014-03-07 16:05:47 +01:00
|
|
|
SUNXI_FEX_FILE_olinuxino-a10 = "sys_config/a10/a10-olinuxino-lime.fex"
|
2013-11-15 18:35:16 +01:00
|
|
|
SUNXI_FEX_FILE_olinuxino-a13 = "sys_config/a13/a13-olinuxino.fex"
|
2013-12-11 18:54:31 +01:00
|
|
|
SUNXI_FEX_FILE_olinuxino-a20 = "sys_config/a20/a20-olinuxino_micro.fex"
|
2014-08-25 21:27:14 +02:00
|
|
|
SUNXI_FEX_FILE_olinuxino-a20som = "sys_config/a20/olimex_a20_som.fex"
|
2014-09-29 22:19:37 +02:00
|
|
|
SUNXI_FEX_FILE_olinuxino-a20lime = "sys_config/a20/a20-olinuxino_lime.fex"
|
2013-11-05 22:13:14 +01:00
|
|
|
SUNXI_FEX_FILE_cubieboard = "sys_config/a10/cubieboard.fex"
|
2013-10-31 13:29:15 +01:00
|
|
|
SUNXI_FEX_FILE_cubieboard2 = "sys_config/a20/cubieboard2.fex"
|
2013-12-31 03:52:13 +01:00
|
|
|
SUNXI_FEX_FILE_cubietruck= "sys_config/a20/cubietruck.fex"
|
2013-10-31 13:29:15 +01:00
|
|
|
|
2013-10-23 19:41:14 +02:00
|
|
|
SUNXI_FEX_BIN_IMAGE = "fex-${MACHINE}-${PV}-${PR}.bin"
|
|
|
|
SUNXI_FEX_BIN_IMAGE_SYMLINK = "fex-${MACHINE}.bin"
|
|
|
|
SUNXI_FEX_BIN_IMAGE_SYMLINK_SIMPLE = "fex.bin"
|
|
|
|
|
|
|
|
inherit deploy
|
|
|
|
|
|
|
|
do_compile() {
|
|
|
|
fex2bin "${S}/${SUNXI_FEX_FILE}" > "${B}/${SUNXI_FEX_BIN_IMAGE}"
|
|
|
|
}
|
|
|
|
|
|
|
|
do_deploy() {
|
|
|
|
install -m 0644 ${B}/${SUNXI_FEX_BIN_IMAGE} ${DEPLOYDIR}/
|
|
|
|
cd ${DEPLOYDIR}
|
|
|
|
ln -sf ${SUNXI_FEX_BIN_IMAGE} ${SUNXI_FEX_BIN_IMAGE_SYMLINK}
|
|
|
|
ln -sf ${SUNXI_FEX_BIN_IMAGE} ${SUNXI_FEX_BIN_IMAGE_SYMLINK_SIMPLE}
|
|
|
|
}
|
|
|
|
addtask deploy before do_build after do_compile
|
|
|
|
|
|
|
|
PACKAGES = ""
|
|
|
|
|
|
|
|
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
|
|
|
|
|
|
|
do_install[noexec] = "1"
|
|
|
|
do_package[noexec] = "1"
|
|
|
|
do_packagedata[noexec] = "1"
|
|
|
|
do_package_write[noexec] = "1"
|
|
|
|
do_package_write_ipk[noexec] = "1"
|
|
|
|
do_package_write_rpm[noexec] = "1"
|
|
|
|
do_package_write_deb[noexec] = "1"
|
|
|
|
do_populate_sysroot[noexec] = "1"
|
|
|
|
|
2014-09-29 22:19:37 +02:00
|
|
|
COMPATIBLE_MACHINE = "(mele|meleg|olinuxino-a10s|olinuxino-a10|olinuxino-a13|olinuxino-a20|olinuxino-a20som|olinuxino-a20lime|cubieboard|cubieboard2|cubietruck)"
|