Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

odroidgoA: Fix invalid DTS includes (cherry-pick from upstream) #66

Open
wants to merge 2 commits into
base: odroidgoA-v2017.09
Choose a base branch
from

Conversation

glebm
Copy link

@glebm glebm commented Nov 22, 2020

Cherry-picks these 2 commits:

Fixes the following build errors:

Error: arch/arm/dts/.rk3036-sdk.dtb.pre.tmp:77.1-10 syntax error
Error: arch/arm/dts/.rk3188-radxarock.dtb.pre.tmp:383.1-10 syntax error

The generated DTS had \#include instead of #include

@glebm glebm force-pushed the odroidgoA-v2017.09-fix-dts branch from 852d52b to f97fee7 Compare November 22, 2020 14:46
@glebm glebm force-pushed the odroidgoA-v2017.09-fix-dts branch from f97fee7 to 894218c Compare November 22, 2020 15:13
@glebm glebm force-pushed the odroidgoA-v2017.09-fix-dts branch from 894218c to 4520c31 Compare November 22, 2020 15:27
Villemoes and others added 2 commits November 22, 2020 15:32
[ commit 9564a8cf422d7b58f6e857e3546d346fa970191e in Linux ]

I tried building using a freshly built Make (4.2.1-69-g8a731d1), but
already the objtool build broke with

orc_dump.c: In function ‘orc_dump’:
orc_dump.c:106:2: error: ‘elf_getshnum’ is deprecated [-Werror=deprecated-declarations]
  if (elf_getshdrnum(elf, &nr_sections)) {

Turns out that with that new Make, the backslash was not removed, so cpp
didn't see a #include directive, grep found nothing, and
-DLIBELF_USE_DEPRECATED was wrongly put in CFLAGS.

Now, that new Make behaviour is documented in their NEWS file:

  * WARNING: Backward-incompatibility!
    Number signs (#) appearing inside a macro reference or function invocation
    no longer introduce comments and should not be escaped with backslashes:
    thus a call such as:
      foo := $(shell echo '#')
    is legal.  Previously the number sign needed to be escaped, for example:
      foo := $(shell echo '\#')
    Now this latter will resolve to "\#".  If you want to write makefiles
    portable to both versions, assign the number sign to a variable:
      C := \#
      foo := $(shell echo '$C')
    This was claimed to be fixed in 3.81, but wasn't, for some reason.
    To detect this change search for 'nocomment' in the .FEATURES variable.

This also fixes up the two make-cmd instances to replace # with $(pound)
rather than with \#. There might very well be other places that need
similar fixup in preparation for whatever future Make release contains
the above change, but at least this builds an x86_64 defconfig with the
new make.

Link: https://bugzilla.kernel.org/show_bug.cgi?id=197847
Cc: Randy Dunlap <[email protected]>
Signed-off-by: Rasmus Villemoes <[email protected]>
Signed-off-by: Masahiro Yamada <[email protected]>
The escape sequence '\#' does not work for the latest GNU Make from
the git tree.

Replace it with $(pound) as Linux did.

Signed-off-by: Masahiro Yamada <[email protected]>
@glebm glebm force-pushed the odroidgoA-v2017.09-fix-dts branch from 3004e4b to 3b8101c Compare November 22, 2020 15:33
glebm added a commit to glebm/batocera.linux that referenced this pull request Nov 22, 2020
@glebm glebm changed the title Fix invalid DTS includes Fix invalid DTS includes (cherry-pick from upstream) Nov 22, 2020
@glebm glebm changed the title Fix invalid DTS includes (cherry-pick from upstream) odroidgoA: Fix invalid DTS includes (cherry-pick from upstream) Nov 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants