diff options
author | Nikolai Merinov <n.merinov@samsung.com> | 2019-02-14 08:23:06 +0300 |
---|---|---|
committer | Nikolai Merinov <n.merinov@samsung.com> | 2019-02-14 08:28:45 +0300 |
commit | b60361b3ff564b6ca10433f7e4acfd9d29132869 (patch) | |
tree | f27b8acef339740c630200e73776a5f8ddaf1811 | |
parent | d7d7dcaf3acd35aa89729d1c35b31e3a7ab0afef (diff) | |
download | linux-exynos-b60361b3ff564b6ca10433f7e4acfd9d29132869.tar.gz linux-exynos-b60361b3ff564b6ca10433f7e4acfd9d29132869.tar.bz2 linux-exynos-b60361b3ff564b6ca10433f7e4acfd9d29132869.zip |
Pass system CC as CC and HOSTCC to makefile
-rw-r--r-- | packaging/linux-exynos-tm2.spec | 16 | ||||
-rw-r--r-- | packaging/odroid-linux-kernel.spec | 12 |
2 files changed, 14 insertions, 14 deletions
diff --git a/packaging/linux-exynos-tm2.spec b/packaging/linux-exynos-tm2.spec index 4934ee41551b..33fd91793b99 100644 --- a/packaging/linux-exynos-tm2.spec +++ b/packaging/linux-exynos-tm2.spec @@ -89,25 +89,25 @@ sed -i "s/^EXTRAVERSION.*/EXTRAVERSION = -%{variant}/" Makefile # 1-1. extract uapi headers mkdir -p uapi-headers/usr -make mrproper -make headers_check -make headers_install INSTALL_HDR_PATH=uapi-headers/usr +make mrproper CC="${CC:-gcc}" HOSTCC="${CC:-gcc}" +make headers_check CC="${CC:-gcc}" HOSTCC="${CC:-gcc}" +make headers_install INSTALL_HDR_PATH=uapi-headers/usr CC="${CC:-gcc}" HOSTCC="${CC:-gcc}" %ifarch aarch64 # 1-2. set config file -make %{config_name} +make %{config_name} CC="${CC:-gcc}" HOSTCC="${CC:-gcc}" # 1-3. Build Image/Image.gz -make %{?_smp_mflags} +make %{?_smp_mflags} CC="${CC:-gcc}" HOSTCC="${CC:-gcc}" # 1-4. Build dtbs -make dtbs %{?_smp_mflags} +make dtbs %{?_smp_mflags} CC="${CC:-gcc}" HOSTCC="${CC:-gcc}" # 1-5. Build u-boot itb image mkimage -f arch/arm64/boot/tizen-tm2.its kernel.img # 1-6. Build modules -make modules %{?_smp_mflags} +make modules %{?_smp_mflags} CC="${CC:-gcc}" HOSTCC="${CC:-gcc}" %endif %install @@ -130,7 +130,7 @@ install -m 644 vmlinux %{_builddir}/boot/ install -m 644 COPYING %{_builddir}/boot/ # 2-4. Install modules -make INSTALL_MOD_STRIP=1 INSTALL_MOD_PATH=%{_builddir} modules_install +make INSTALL_MOD_STRIP=1 INSTALL_MOD_PATH=%{_builddir} modules_install CC="${CC:-gcc}" HOSTCC="${CC:-gcc}" %endif # 2-5. Install uapi headers diff --git a/packaging/odroid-linux-kernel.spec b/packaging/odroid-linux-kernel.spec index fd2b1aa57bed..9837bdc05c41 100644 --- a/packaging/odroid-linux-kernel.spec +++ b/packaging/odroid-linux-kernel.spec @@ -67,15 +67,15 @@ This package provides kernel map and etc information for odroid kernel. sed -i "s/^EXTRAVERSION.*/EXTRAVERSION = -%{release}-%{variant}/" Makefile # 1. Compile sources -make %{config_name} -make %{?_smp_mflags} +make %{config_name} CC="${CC:-gcc}" HOSTCC="${CC:-gcc}" +make %{?_smp_mflags} CC="${CC:-gcc}" HOSTCC="${CC:-gcc}" # 2. Build zImage -make zImage %{?_smp_mflags} -make dtbs %{?_smp_mflags} +make zImage %{?_smp_mflags} CC="${CC:-gcc}" HOSTCC="${CC:-gcc}" +make dtbs %{?_smp_mflags} CC="${CC:-gcc}" HOSTCC="${CC:-gcc}" # 3. Build modules -make modules %{?_smp_mflags} +make modules %{?_smp_mflags} CC="${CC:-gcc}" HOSTCC="${CC:-gcc}" %install QA_SKIP_BUILD_ROOT="DO_NOT_WANT"; export QA_SKIP_BUILD_ROOT @@ -92,7 +92,7 @@ install -m 644 System.map %{buildroot}/boot/System.map-%{fullVersion} install -m 644 .config %{buildroot}/boot/config-%{fullVersion} # 3. Install modules -make INSTALL_MOD_STRIP=1 INSTALL_MOD_PATH=%{buildroot} modules_install KERNELRELEASE=%{fullVersion} +make INSTALL_MOD_STRIP=1 INSTALL_MOD_PATH=%{buildroot} modules_install KERNELRELEASE=%{fullVersion} CC="${CC:-gcc}" HOSTCC="${CC:-gcc}" rm -rf %{buildroot}/boot/vmlinux* rm -rf %{buildroot}/System.map* |