OpenWrt Forum Archive

Topic: Using OpenWRT SDK to build for x86

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

Hello,

I've been searching on the forums and the Wiki and can't seem to find this anywhere. It seems the default settings for the OpenWRT SDK package listed on the wiki is to set to build packages for the mipsel. I'd like to use the SDK because at some point I'm going to build for mipsel, but right now I'm testing in a virtual machine running the x86 version of OpenWRT

I've tried changing the the configuration file, build I am still getting build errors.. any thoughts?

BR2_ARCH="x86"
BR2_WGET="wget --passive-ftp -nd"
BR2_STAGING_DIR="$(BASE_DIR)/staging_dir_$(ARCH)$(ARCH_FPU_SUFFIX)"
BR2_JLEVEL=1
BR2_LARGEFILE=y
BR2_TARGET_OPTIMIZATION="-Os -pipe -funit-at-a-time"
CONFIG_ARCH="x86"
CONFIG_WGET="wget --passive-ftp -nd"
CONFIG_STAGING_DIR="$(BASE_DIR)/staging_dir_$(ARCH)$(ARCH_FPU_SUFFIX)"
CONFIG_JLEVEL=1
CONFIG_LARGEFILE=y
CONFIG_TARGET_OPTIMIZATION="-Os -pipe -funit-at-a-time"

Any help would be much appreciated

ejwright wrote:

I've been searching on the forums and the Wiki and can't seem to find this anywhere.

You are better off to start from scratch (source) to build your own OpenWRT SDK. Just follow this.

The discussion might have continued from here.