diff options
| author | Jacob Stiffler <j-stiffler@ti.com> | 2018-04-26 23:46:01 +0000 |
|---|---|---|
| committer | Denys Dmytriyenko <denys@ti.com> | 2018-05-02 15:23:37 -0400 |
| commit | 6505a8392dcf608330a91705d55780ad9b246627 (patch) | |
| tree | 79a87bf8cba86ddd74ad240d9efc64e15312d177 /recipes-kernel | |
| parent | 4f330797122304fe525b76158cd328efff3fdcaa (diff) | |
| download | meta-ti-6505a8392dcf608330a91705d55780ad9b246627.tar.gz | |
linux: cmem: flag dependent variables
* Flag variables used in setup_cmem to force it to re-run when one changes.
Signed-off-by: Jacob Stiffler <j-stiffler@ti.com>
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Diffstat (limited to 'recipes-kernel')
| -rw-r--r-- | recipes-kernel/linux/cmem.inc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/recipes-kernel/linux/cmem.inc b/recipes-kernel/linux/cmem.inc index 64d32649..74c1a0cd 100644 --- a/recipes-kernel/linux/cmem.inc +++ b/recipes-kernel/linux/cmem.inc | |||
| @@ -29,6 +29,11 @@ CMEM_DEVICETREE_dra74x = "dra7-evm.dtb dra7-evm-lcd-lg.dtb dra7-evm-lcd-osd101t2 | |||
| 29 | # Flag to enable CMEM injection | 29 | # Flag to enable CMEM injection |
| 30 | RESERVE_CMEM ?= "0" | 30 | RESERVE_CMEM ?= "0" |
| 31 | 31 | ||
| 32 | # Variables which influence setup_cmem | ||
| 33 | CMEM_VARS = "RESERVE_CMEM CMEM_MACHINE" | ||
| 34 | CMEM_VARS += "CMEM_DTSI ${@' '.join(map(lambda s: 'CMEM_DTSI_' + s, (d.getVar('CMEM_MACHINE') or '').split()))}" | ||
| 35 | CMEM_VARS += "CMEM_DEVICETREE ${@' '.join(map(lambda s: 'CMEM_DEVICETREE_' + s, (d.getVar('CMEM_MACHINE') or '').split()))}" | ||
| 36 | |||
| 32 | # Add correct cmem.dtsi to SRC_URI for each variant for a given machine | 37 | # Add correct cmem.dtsi to SRC_URI for each variant for a given machine |
| 33 | python do_unpack() { | 38 | python do_unpack() { |
| 34 | old_overrides = d.getVar('OVERRIDES', False) | 39 | old_overrides = d.getVar('OVERRIDES', False) |
| @@ -81,3 +86,4 @@ python do_setup_cmem() { | |||
| 81 | } | 86 | } |
| 82 | 87 | ||
| 83 | do_patch[postfuncs] += "do_setup_cmem" | 88 | do_patch[postfuncs] += "do_setup_cmem" |
| 89 | do_patch[vardeps] += "${CMEM_VARS}" | ||
