Skip to content

youngbo89/OpenWrt-cross-compile-makefile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cross Compile [Hello World] for OpenWrt

keywords: OpenWrt, Cross Compile, Makefile

  1. download SDK from OpenWrt Downloads. NOT ImageBuilder

  2. extract it to a directory. I will call this directory $(OPENWRT_SDK)

  3. make symbolic link for toolchain directory. I will call this directory $(TOOLCHAIN)
    sim@host:~$ ln -s $(OPENWRT_SDK)/staging_dir/$(SO_LOOOOOOONG_NAME) $(OPENWRT_SDK)/staging_dir/toolchain

  4. edit makefile depend on your system, you should edit these variables:

  • STAGING_DIR
  • PATH
  • CC
    you will find a binary name in $(TOOLCHAIN)/bin.
    If your target board is Raspberry Pi or Pi2, It will be "arm-openwrt-linux-gcc"

You will get more detail information at http://wiki.openwrt.org/doc/devel/crosscompile

  1. make hello world
    sim@host: $ make

About

OpenWrt, cross-compile, makefile, raspberrypi2, boost

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published