RobertCNelson / bb-kernel

MIT License
132 stars 103 forks source link

Why always download gcc-linaro-arm-linux-gnueabihf-? #2

Closed jiapei100 closed 10 years ago

jiapei100 commented 10 years ago

Hi, Robert:

Whenever I tried to ./build_kernel.sh, I got

https://releases.linaro.org/14.06/components/toolchain/binaries/gcc-linaro-arm-linux-gnueabihf-4.9-2014.06_linux.tar.xz

I think I can use my own toolchain installed from Ubuntu repository to finish the entire compilation. I mean, without linaro's gcc toolchain, I should also be able to compile the kernel.

So, if I insist on using my own toolchain, is there such an option in ./build_kernel.sh?

Cheers Pei

RobertCNelson commented 10 years ago

Right here: (system.sh.sample -> system.sh) https://github.com/RobertCNelson/bb-kernel/blob/am33x-v3.8/system.sh.sample#L15

jiapei100 commented 10 years ago

Hi, Robert:

It seems this is not the case. As you can see, my CC has already been set to "/usr/bin/arm-linux-gnueabihf-", the process "Installing: gcc-linaro-arm-linux-gnueabihf

--2014-08-02 13:25:40-- https://releases.linaro.org/14.06/components/toolchain/binaries/gcc-linaro-arm-linux-gnueabihf-4.9-2014.06_linux.tar.xz" goes on...

➜ BBB cd bb-kernel ➜ bb-kernel git:(master) git checkout origin/am33x-v3.16 -b tmp Branch tmp set up to track remote branch am33x-v3.16 from origin. Switched to a new branch 'tmp' ➜ bb-kernel git:(tmp) ./build_kernel.sh

So, any further suggestions/solutions?

Cheers Pei

RobertCNelson commented 10 years ago

What's the output of:

cat system.sh | grep CC

Otherwise i haven't bothered to setup the script to read the environment variable CC.

Regards,

jiapei100 commented 10 years ago

Hi, Robert:

Thank you for your prompt reply. You are right. I've got to set "CC" by modifying system.sh, instead of exporting an environmental variable.

Cheers