Installing Linux modules on VF50

I have a VF50 running linux 2.5. I have recompiled the kernel and recompiled modules, which works error free. However, when I come to install the modules, I get an error “make: arm-angstrom-linux-gnueabi-gcc: Command not found”, however, I can run arm-angstrom-linux-gnueabi-gcc from the command line. Output from install:

andrew@UbuntuLinux:/opt/TORADEX_COLIBRI_VF_KERNEL/linux-toradex$ sudo -E make INSTALL_MOD_PATH=/home/andrew/Documents/Toradex/Toradex-Images/Colibri_VF_LinuxConsoleImageV2.5/rootfs/ modules_install
[sudo] password for andrew: 
make: arm-angstrom-linux-gnueabi-gcc: Command not found
  INSTALL crypto/ccm.ko
  INSTALL crypto/crypto_null.ko
  INSTALL crypto/ctr.ko
  INSTALL crypto/gcm.ko
  INSTALL crypto/gf128mul.ko
  INSTALL crypto/ghash-generic.ko
  INSTALL crypto/seqiv.ko
  INSTALL crypto/sha1_generic.ko
  INSTALL drivers/hid/hid-multitouch.ko
  INSTALL drivers/input/touchscreen/fusion_F0710A.ko
  INSTALL drivers/media/usb/uvc/uvcvideo.ko
  INSTALL drivers/media/v4l2-core/videobuf2-core.ko
  INSTALL drivers/media/v4l2-core/videobuf2-memops.ko
  INSTALL drivers/media/v4l2-core/videobuf2-vmalloc.ko
  INSTALL drivers/net/can/can-dev.ko
  INSTALL drivers/net/can/flexcan.ko
  INSTALL drivers/net/can/spi/mcp251x.ko
  INSTALL drivers/net/mii.ko
  INSTALL drivers/net/ppp/ppp_async.ko
  INSTALL drivers/net/ppp/ppp_deflate.ko
  INSTALL drivers/net/ppp/ppp_generic.ko
  INSTALL drivers/net/ppp/ppp_mppe.ko
  INSTALL drivers/net/ppp/pppox.ko
  INSTALL drivers/net/ppp/pptp.ko
  INSTALL drivers/net/slip/slhc.ko
  INSTALL drivers/net/usb/asix.ko
  INSTALL drivers/net/usb/ax88179_178a.ko
  INSTALL drivers/net/usb/cdc_ether.ko
  INSTALL drivers/net/usb/usbnet.ko
  INSTALL drivers/net/wireless/rt2x00/rt2800lib.ko
  INSTALL drivers/net/wireless/rt2x00/rt2800usb.ko
  INSTALL drivers/net/wireless/rt2x00/rt2x00lib.ko
  INSTALL drivers/net/wireless/rt2x00/rt2x00usb.ko
  INSTALL drivers/net/wireless/rtlwifi/rtl8192c/rtl8192c-common.ko
  INSTALL drivers/net/wireless/rtlwifi/rtl8192cu/rtl8192cu.ko
  INSTALL drivers/net/wireless/rtlwifi/rtl_usb.ko
  INSTALL drivers/net/wireless/rtlwifi/rtlwifi.ko
  INSTALL drivers/net/wireless/zd1201.ko
  INSTALL drivers/usb/class/cdc-acm.ko
  INSTALL drivers/usb/gadget/function/u_ether.ko
  INSTALL drivers/usb/gadget/function/u_serial.ko
  INSTALL drivers/usb/gadget/function/usb_f_acm.ko
  INSTALL drivers/usb/gadget/function/usb_f_ecm.ko
  INSTALL drivers/usb/gadget/function/usb_f_eem.ko
  INSTALL drivers/usb/gadget/function/usb_f_fs.ko
  INSTALL drivers/usb/gadget/function/usb_f_hid.ko
  INSTALL drivers/usb/gadget/function/usb_f_mass_storage.ko
  INSTALL drivers/usb/gadget/function/usb_f_ncm.ko
  INSTALL drivers/usb/gadget/function/usb_f_obex.ko
  INSTALL drivers/usb/gadget/function/usb_f_rndis.ko
  INSTALL drivers/usb/gadget/function/usb_f_serial.ko
  INSTALL drivers/usb/gadget/libcomposite.ko
  INSTALL fs/configfs/configfs.ko
  INSTALL fs/nfs/flexfilelayout/nfs_layout_flexfiles.ko
  INSTALL lib/crc-ccitt.ko
  INSTALL net/can/can-bcm.ko
  INSTALL net/can/can-gw.ko
  INSTALL net/can/can-raw.ko
  INSTALL net/can/can.ko
  INSTALL net/ipv4/gre.ko
  INSTALL net/ipv4/udp_tunnel.ko
  INSTALL net/ipv6/ip6_udp_tunnel.ko
  INSTALL net/l2tp/l2tp_core.ko
  INSTALL net/l2tp/l2tp_ppp.ko
  INSTALL net/mac80211/mac80211.ko
  INSTALL net/netfilter/xt_l2tp.ko
  INSTALL net/wireless/cfg80211.ko
  DEPMOD  4.1.15-dirty

For some distributions/configurations using sudo with option -E will still reset the PATH variable. You can try adding PATH to “env_keep” in /etc/sudoers or commenting out “Defaults secure_path line”

can you give command line(in detail) example of adding path to “env_keep”

Thank you

Check the sudoers manual please on how to use env_keep.