OpenWrt – Diff between revs 2 and 3
?pathlinks?
Rev 2 | Rev 3 | |||
---|---|---|---|---|
Line 31... | Line 31... | |||
31 | +endif |
31 | +endif |
|
32 | + |
32 | + |
|
33 | # Read KERNELRELEASE from include/config/kernel.release (if it exists) |
33 | # Read KERNELRELEASE from include/config/kernel.release (if it exists) |
|
34 | KERNELRELEASE = $(shell cat include/config/kernel.release 2> /dev/null) |
34 | KERNELRELEASE = $(shell cat include/config/kernel.release 2> /dev/null) |
|
35 | KERNELVERSION = $(VERSION)$(if $(PATCHLEVEL),.$(PATCHLEVEL)$(if $(SUBLEVEL),.$(SUBLEVEL)))$(EXTRAVERSION) |
35 | KERNELVERSION = $(VERSION)$(if $(PATCHLEVEL),.$(PATCHLEVEL)$(if $(SUBLEVEL),.$(SUBLEVEL)))$(EXTRAVERSION) |
|
36 | @@ -673,11 +678,6 @@ KBUILD_CFLAGS += $(call cc-disable-warni |
36 | @@ -637,11 +642,6 @@ KBUILD_CFLAGS += $(call cc-disable-warni |
|
37 | KBUILD_CFLAGS += $(call cc-disable-warning, int-in-bool-context) |
37 | KBUILD_CFLAGS += $(call cc-disable-warning, int-in-bool-context) |
|
38 | KBUILD_CFLAGS += $(call cc-disable-warning, attribute-alias) |
38 | KBUILD_CFLAGS += $(call cc-disable-warning, attribute-alias) |
|
Line 39... | Line 39... | |||
39 | |
39 | |
|
40 | -ifdef CONFIG_LD_DEAD_CODE_DATA_ELIMINATION |
40 | -ifdef CONFIG_LD_DEAD_CODE_DATA_ELIMINATION |
|
41 | -KBUILD_CFLAGS += $(call cc-option,-ffunction-sections,) |
41 | -KBUILD_CFLAGS += $(call cc-option,-ffunction-sections,) |
|
42 | -KBUILD_CFLAGS += $(call cc-option,-fdata-sections,) |
42 | -KBUILD_CFLAGS += $(call cc-option,-fdata-sections,) |
|
43 | -endif |
43 | -endif |
|
44 | - |
44 | - |
|
45 | ifdef CONFIG_CC_OPTIMIZE_FOR_SIZE |
- | ||
46 | KBUILD_CFLAGS += $(call cc-option,-Oz,-Os) |
45 | ifdef CONFIG_CC_OPTIMIZE_FOR_SIZE |
|
- | 46 | KBUILD_CFLAGS += -Os $(call cc-disable-warning,maybe-uninitialized,) $(EXTRA_OPTIMIZATION) |
||
47 | KBUILD_CFLAGS += $(call cc-disable-warning,maybe-uninitialized,) $(EXTRA_OPTIMIZATION) |
47 | else |
|
48 | --- a/arch/arm/Kconfig |
48 | --- a/arch/arm/Kconfig |
|
49 | +++ b/arch/arm/Kconfig |
49 | +++ b/arch/arm/Kconfig |
|
50 | @@ -81,6 +81,7 @@ config ARM |
50 | @@ -81,6 +81,7 @@ config ARM |
|
51 | select HAVE_UID16 |
51 | select HAVE_UID16 |