build.config: Move gcc-wrapper into Makefile
When CC is set using LLVM=1, gcc-wrapper.py does not take effect. Thus, move gcc-wrapper.py into kernel's Makefile. Change-Id: I55f0ea89f5a70b3f8042bc7c53d699636eb18094 Signed-off-by: Elliot Berman <eberman@codeaurora.org>
This commit is contained in:
parent
46e89a6343
commit
9518cfd5cc
2
Makefile
2
Makefile
@ -509,6 +509,8 @@ KBUILD_LDFLAGS_MODULE :=
|
||||
KBUILD_LDFLAGS :=
|
||||
CLANG_FLAGS :=
|
||||
|
||||
CC := $(srctree)/scripts/gcc-wrapper.py $(CC)
|
||||
|
||||
export ARCH SRCARCH CONFIG_SHELL BASH HOSTCC KBUILD_HOSTCFLAGS CROSS_COMPILE LD CC
|
||||
export CPP AR NM STRIP OBJCOPY OBJDUMP OBJSIZE READELF PAHOLE RESOLVE_BTFIDS LEX YACC AWK INSTALLKERNEL
|
||||
export PERL PYTHON PYTHON3 CHECK CHECKFLAGS MAKE UTS_MACHINE HOSTCXX
|
||||
|
@ -7,7 +7,6 @@
|
||||
# All files in this list are sourced
|
||||
|
||||
CONFIG_DIR=arch/${ARCH}/configs
|
||||
CC="${ROOT_DIR}/common/scripts/gcc-wrapper.py ${CC}"
|
||||
|
||||
BRANCH=msm-waipio
|
||||
CONFIG_TARGET=msm.${MSM_ARCH}
|
||||
|
@ -547,7 +547,7 @@ int qcom_system_heap_create(void)
|
||||
int ret;
|
||||
|
||||
ret = dynamic_page_pool_init_shrinker();
|
||||
if (IS_ERR(ret))
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
|
||||
for (i = 0; i < NUM_ORDERS; i++) {
|
||||
|
@ -1644,7 +1644,7 @@ static int qti_flash_led_probe(struct platform_device *pdev)
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
led->max_channels = (u8)of_device_get_match_data(&pdev->dev);
|
||||
led->max_channels = (u8)(uintptr_t)of_device_get_match_data(&pdev->dev);
|
||||
if (!led->max_channels) {
|
||||
pr_err("Failed to get max supported led channels\n");
|
||||
return -EINVAL;
|
||||
|
Loading…
Reference in New Issue
Block a user