From beb02eff709df88a8cfc489f7b1839386803e7c6 Mon Sep 17 00:00:00 2001 From: Chang Rebecca Swee Fun Date: Wed, 12 Feb 2020 09:18:33 +0000 Subject: machine: arria10: use bb.utils.contains() to set different eraseblock size Signed-off-by: Chang Rebecca Swee Fun --- conf/machine/arria10.conf | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'conf') diff --git a/conf/machine/arria10.conf b/conf/machine/arria10.conf index 40b258f..02b73df 100644 --- a/conf/machine/arria10.conf +++ b/conf/machine/arria10.conf @@ -21,7 +21,10 @@ KERNEL_DEVICETREE ?= "\ socfpga_arria10_socdk_qspi.dtb \ socfpga_arria10_socdk_nand.dtb \ " -EXTRA_IMAGECMD_jffs2 = "--squash -s 256 -e 64KiB" + +JFFS2_ERASEBLOCK ?= "${@bb.utils.contains("A10_IMAGE_TYPE", "NAND", "-e 0x20000", "", d)} \ + ${@bb.utils.contains("A10_IMAGE_TYPE", "QSPI", "-e 0x10000", "", d)}" +EXTRA_IMAGECMD_jffs2 ?= "--squash -s 256 ${JFFS2_ERASEBLOCK}" SERIAL_CONSOLES ?= "115200;ttyS0" -- cgit v1.2.3-54-g00ecf