0248-scripts-dtc-Only-emit-local-fixups-for-overlays.patch 682 B

123456789101112131415161718192021
  1. From 82ba59f70cfce918365d11787866e5681d43ffb8 Mon Sep 17 00:00:00 2001
  2. From: Phil Elwell <phil@raspberrypi.org>
  3. Date: Tue, 19 Apr 2016 13:55:29 +0100
  4. Subject: [PATCH] scripts/dtc: Only emit local fixups for overlays
  5. Signed-off-by: Phil Elwell <phil@raspberrypi.org>
  6. ---
  7. scripts/dtc/checks.c | 2 +-
  8. 1 file changed, 1 insertion(+), 1 deletion(-)
  9. --- a/scripts/dtc/checks.c
  10. +++ b/scripts/dtc/checks.c
  11. @@ -514,7 +514,7 @@ static void fixup_phandle_references(str
  12. }
  13. /* if it's a local reference, we need to record it */
  14. - if (symbol_fixup_support) {
  15. + if (symbol_fixup_support && dt->is_plugin) {
  16. /* allocate a new local fixup entry */
  17. fe = xmalloc(sizeof(*fe));