On Fri, Jan 06 at 04:07, Vered Zvi wrote:
> Hello,
> 
> I compiled busybox 1.25.1 for ARM-V7 using crosstool-ng toolchain.
> 
> I used the commands:
> 
> TOOLCHAIN=/home/zvivered/module/CARD/linux4.1.13/toolchain
> make clean
> make ARCH=arm 
> CROSS_COMPILE=$TOOLCHAIN/crosstool/release/bin/arm-cortex_a15-linux-gnueabihf-
>  defconfig
> make ARCH=arm 
> CROSS_COMPILE=$TOOLCHAIN/crosstool/release/bin/arm-cortex_a15-linux-gnueabihf-
> make CONFIG_PREFIX=../../../rootfs install

I'm not sure passing the parameters to make like this works,
they don't get passed to sub processes ?  I've always set them
in the environment so all children are guaranteed to see them.

I'd stick the commands in a scripts for easy repetition and tweaking.
Something like this:

  #!/bin/bash

  # Export cross build parameters to environment
  export ARCH=arm 
  export CROSS_COMPILE=arm-cortex_a15-linux-gnueabihf-

  # Put compiler bin in the front of my PATH (automatically exported)
  TOOLCHAIN=/home/zvivered/module/CARD/linux4.1.13/toolchain
  PATH=$TOOLCHAIN/crosstool/release/bin:$PATH

  # Build
  make clean
  make defconfig
  make

  # Use absolute path for install directory
  make CONFIG_PREFIX=$(pwd)/../../../rootfs install

Hope this helps
-- 
        Bob Dunlop
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to