OpenWrt Forum Archive

Topic: Cross compile with toolchain

The content of this topic has been archived on 23 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi to all the community.

I'm with the purpose of developing a package not defined in the public repositories to be executed on my routers. Is written in C/C++ (the dependencies are Openvswitch and Click Modular Router). I have a Linksys WRT45g (backfire) and a TPLink1043nd (barrier breaker).

I have followed the toolchain steps http://wiki.openwrt.org/doc/howto/build

But now, where I have to put my code? in which directories of the toolchain tree structure I have to put? or this is not the correct action?
The toolchain process made me to construct: /home/nameofuser/openwrt/openwrt and then here I have the following directories:

BSDmakefile, build_dir, config, Config.in, dl, docs, feeds, feeds.conf.default, include, LICENSE, Makefile, package, README, rules.mk,scripts, staging_dir, target, tmp, toolchain, tools

What is the next step? I have to do a Makefile? does the toolchain generate an .ipkg file? Before trying the toolchain option I tried with the SDK http://downloads.openwrt.org/backfire/10.03.1/brcm47xx/ but I had no succes.

Sorry for my basic level of english/openwrt/linux.

Thanks.

(Last edited by adrianux on 22 Apr 2014, 17:44)

Read this developing howto.

Thanks for the past answer. I will take a look to your link, and in case of having a doubt I will post it here smile

In that link, you will see there is a sub-section called package. That is the one you will need. However, I strongly recommend you peruse each subsection.

The discussion might have continued from here.