mirror of
https://github.com/linux-sunxi/meta-sunxi.git
synced 2024-12-26 04:58:22 +01:00
conf: Move logic for handling dtb in deploy dir to common include
Signed-off-by: Marek Belisko <marek.belisko@open-nandra.com>
This commit is contained in:
parent
ca39c18cb9
commit
c867cb74e2
@ -45,3 +45,23 @@ WKS_FILES ?= "sunxi-sdcard-image.wks.in"
|
|||||||
WKS_FILE_DEPENDS ?= "virtual/kernel u-boot"
|
WKS_FILE_DEPENDS ?= "virtual/kernel u-boot"
|
||||||
# in case of sunxi kernel, sunxi-board-fex must be built prior wic image assembly
|
# in case of sunxi kernel, sunxi-board-fex must be built prior wic image assembly
|
||||||
WKS_FILE_DEPENDS += " ${@bb.utils.contains('PREFERRED_PROVIDER_virtual/kernel', 'linux-sunxi', 'sunxi-board-fex', '', d)}"
|
WKS_FILE_DEPENDS += " ${@bb.utils.contains('PREFERRED_PROVIDER_virtual/kernel', 'linux-sunxi', 'sunxi-board-fex', '', d)}"
|
||||||
|
|
||||||
|
# arm64 dnd arm32bts are under <vendor>/dts but is deployed under DEPLOYDIR
|
||||||
|
do_fix_device_tree_location() {
|
||||||
|
|
||||||
|
for kdt in ${KERNEL_DEVICETREE}
|
||||||
|
do
|
||||||
|
local dbt_dir=$(dirname ${kdt})
|
||||||
|
if [ "." != "${dbt_dir}" ] ; then
|
||||||
|
local dbt=$(basename ${kdt})
|
||||||
|
local dst=${DEPLOY_DIR_IMAGE}/${dbt_dir}/${dbt}
|
||||||
|
if [ ! -f ${dst} ] ; then
|
||||||
|
mkdir -p ${DEPLOY_DIR_IMAGE}/$dbt_dir
|
||||||
|
ln -s ${DEPLOY_DIR_IMAGE}/${dbt} ${dst}
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
addtask do_fix_device_tree_location after do_write_wks_template before do_image_wic
|
||||||
|
|
||||||
|
@ -24,26 +24,6 @@ SPL_BINARY ?= "u-boot-sunxi-with-spl.bin"
|
|||||||
SERIAL_CONSOLES ?= "115200;ttyS0"
|
SERIAL_CONSOLES ?= "115200;ttyS0"
|
||||||
MACHINE_FEATURES ?= "alsa apm keyboard rtc serial screen usbgadget usbhost vfat"
|
MACHINE_FEATURES ?= "alsa apm keyboard rtc serial screen usbgadget usbhost vfat"
|
||||||
|
|
||||||
# arm64 dbts are under <vendor>/dts but is deployed under DEPLOYDIR
|
|
||||||
do_fix_device_tree_location() {
|
|
||||||
|
|
||||||
for kdt in ${KERNEL_DEVICETREE}
|
|
||||||
do
|
|
||||||
local dbt_dir=$(dirname ${kdt})
|
|
||||||
if [ "." != "${dbt_dir}" ] ; then
|
|
||||||
local dbt=$(basename ${kdt})
|
|
||||||
local dst=${DEPLOY_DIR_IMAGE}/${dbt_dir}/${dbt}
|
|
||||||
if [ ! -f ${dst} ] ; then
|
|
||||||
mkdir -p ${DEPLOY_DIR_IMAGE}/$dbt_dir
|
|
||||||
ln -s ${DEPLOY_DIR_IMAGE}/${dbt} ${dst}
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
addtask do_fix_device_tree_location after do_write_wks_template before do_image_wic
|
|
||||||
|
|
||||||
SUNXI_BOOT_SPACE ?= "40"
|
SUNXI_BOOT_SPACE ?= "40"
|
||||||
IMAGE_BOOT_FILES ?= "${KERNEL_IMAGETYPE} boot.scr ${KERNEL_DEVICETREE}"
|
IMAGE_BOOT_FILES ?= "${KERNEL_IMAGETYPE} boot.scr ${KERNEL_DEVICETREE}"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user