Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crosscompile for mipsel #78

Open
demontefacto opened this issue Jul 13, 2017 · 5 comments
Open

Crosscompile for mipsel #78

demontefacto opened this issue Jul 13, 2017 · 5 comments

Comments

@demontefacto
Copy link

I have an issue with LEDE crosscompile for mipsel (MT7620). It is looking for arch/mipsel/Makefile but this file (directory) is missing. If I do a symlink mips to mipsel in build dir, then it works. Could someone help(hint) me?

@aabc
Copy link
Owner

aabc commented Jul 15, 2017

Is it for OpenWRT? OpenWRT support is added/explained by @alex-eri Please direct questions to him.

@alex-eri could you add your contacts to openwrt/README.md?

@alex-eri
Copy link
Contributor

our Makefile does not looking at this directory. @demontefacto can you provide step by step how reproduce this?

@demontefacto
Copy link
Author

@alex-eri - thank you for your assist
Tested with OpenWRT CC (4.4.7) and LEDE 17.01 (4.4.61)
Target MediaTek Ralink MIPS
Subtarget MT7620 based boards
Target Profile ZBT-WE826

Following your instruction here, I've added MakeFile (latest or stable version, it does not matter) to packages feeds.
I've selected ipt-netflow in the menuconfig -> make V=s. ->Makefile.In:627 arch/mipsel/Makefile does ...
I've tested to build against musl and glibc too. (I prefer glibc :))
If I do a symlink mips -> mipsel in build_dir/target-mipsel_24kc_glibc-2.24/linux-ramips_mt7620/linux-4.4.61/arch/, it is OK.

If you will need full error message, let me know. I do it again with clean build dir

@alex-eri
Copy link
Contributor

alex-eri commented Jul 17, 2017

comfirmed, seems Lede or Kernel bug

alex-eri added a commit to alex-eri/ipt-netflow that referenced this issue Jul 17, 2017
@alex-eri
Copy link
Contributor

alex-eri commented Jul 17, 2017

Kernel has

# Additional ARCH settings for x86
ifeq ($(ARCH),i386)
        SRCARCH := x86
endif
ifeq ($(ARCH),x86_64)
        SRCARCH := x86
endif


etc.

but not for mipsel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants