OpenWrt – Diff between revs 2 and 3
?pathlinks?
Rev 2 | Rev 3 | |||
---|---|---|---|---|
Line 5... | Line 5... | |||
5 | Add the options only when they are supported to make it compatible with |
5 | Add the options only when they are supported to make it compatible with |
|
6 | dtc from kernel 4.9. |
6 | dtc from kernel 4.9. |
|
Line 7... | Line 7... | |||
7 | |
7 | |
|
8 | --- a/scripts/Kbuild.include |
8 | --- a/scripts/Kbuild.include |
|
9 | +++ b/scripts/Kbuild.include |
9 | +++ b/scripts/Kbuild.include |
|
10 | @@ -173,6 +173,11 @@ ld-version = $(shell $(LD) --version | $ |
10 | @@ -172,6 +172,11 @@ ld-version = $(shell $(LD) --version | $ |
|
11 | # Usage: $(call ld-ifversion, -ge, 22252, y) |
11 | # Usage: $(call ld-ifversion, -ge, 22252, y) |
|
Line 12... | Line 12... | |||
12 | ld-ifversion = $(shell [ $(ld-version) $(1) $(2) ] && echo $(3) || echo $(4)) |
12 | ld-ifversion = $(shell [ $(ld-version) $(1) $(2) ] && echo $(3) || echo $(4)) |
|
13 | |
13 | |
|
Line 19... | Line 19... | |||
19 | ###### |
19 | ###### |
|
Line 20... | Line 20... | |||
20 | |
20 | |
|
21 | ### |
21 | ### |
|
22 | --- a/scripts/Makefile.extrawarn |
22 | --- a/scripts/Makefile.extrawarn |
|
23 | +++ b/scripts/Makefile.extrawarn |
23 | +++ b/scripts/Makefile.extrawarn |
|
Line 24... | Line 24... | |||
24 | @@ -56,8 +56,8 @@ endif |
24 | @@ -58,8 +58,8 @@ endif |
|
Line 25... | Line 25... | |||
25 | |
25 | |
|
26 | KBUILD_CFLAGS += $(warning) |
26 | KBUILD_CFLAGS += $(warning) |
|
27 | |
27 | |
|
28 | -dtc-warning-2 += -Wnode_name_chars_strict |
28 | -dtc-warning-2 += -Wnode_name_chars_strict |
|
Line 29... | Line 29... | |||
29 | -dtc-warning-2 += -Wproperty_name_chars_strict |
29 | -dtc-warning-2 += -Wproperty_name_chars_strict |
|
30 | +dtc-warning-2 += $(call dtc-option,-Wnode_name_chars_strict) |
30 | +dtc-warning-2 += $(call dtc-option,-Wnode_name_chars_strict) |
|
31 | +dtc-warning-2 += $(call dtc-option,-Wproperty_name_chars_strict) |
31 | +dtc-warning-2 += $(call dtc-option,-Wproperty_name_chars_strict) |
|
32 | |
32 | |
|
Line 33... | Line 33... | |||
33 | dtc-warning := $(dtc-warning-$(findstring 1, $(KBUILD_ENABLE_EXTRA_GCC_CHECKS))) |
33 | dtc-warning := $(dtc-warning-$(findstring 1, $(KBUILD_ENABLE_EXTRA_GCC_CHECKS))) |
|
34 | dtc-warning += $(dtc-warning-$(findstring 2, $(KBUILD_ENABLE_EXTRA_GCC_CHECKS))) |
34 | dtc-warning += $(dtc-warning-$(findstring 2, $(KBUILD_ENABLE_EXTRA_GCC_CHECKS))) |
|
35 | @@ -68,11 +68,11 @@ DTC_FLAGS += $(dtc-warning) |
35 | @@ -70,11 +70,11 @@ DTC_FLAGS += $(dtc-warning) |