[OpenWrt-Devel] [PATCH] get rid of misleading FORCE=1 message

2015-07-24 Thread Lawrence D'Anna
Signed-off-by: Lawrence D'Anna la...@elder-gods.org --- include/toplevel.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/toplevel.mk b/include/toplevel.mk index 11b2dd9..b9393ea 100644 --- a/include/toplevel.mk +++ b/include/toplevel.mk @@ -140,7 +140,7

[OpenWrt-Devel] [PATCH 2/3] prereq-build: use HOST* variables to test host compiler

2015-07-21 Thread Lawrence D'Anna
We might need HOST_CPPFLAGS and HOST_LDFLAGS to find libraries. --- include/prereq-build.mk | 28 +--- 1 file changed, 9 insertions(+), 19 deletions(-) diff --git a/include/prereq-build.mk b/include/prereq-build.mk index 53eac37..6c8cbf1 100644 ---

[OpenWrt-Devel] [PATCH 1/3] When building on darwin, add paths for Homebrew.

2015-07-21 Thread Lawrence D'Anna
Various host-side tools and libraries that we need are not provided by Mac OS such as: * openssl * gnugetopt Homebrew seems to be the standard way to install these things, so on when building on Darwin we need to add some paths to Homebrew-installed things to PATH, HOST_CPPFLAGS, and

[OpenWrt-Devel] [PATCH 3/3] prereq-build: check for gnu date, dd

2015-07-21 Thread Lawrence D'Anna
Needed to make sure we get gdate and gdd from Homebrew on Darwin instead of the ones built-in to the OS. Signed-off-by: Lawrence D'Anna la...@elder-gods.org --- include/prereq-build.mk | 7 +++ 1 file changed, 7 insertions(+) diff --git a/include/prereq-build.mk b/include/prereq-build.mk

Re: [OpenWrt-Devel] [PATCH] allow HOST* variables to be set from config.

2015-07-20 Thread Lawrence D'Anna
I’ve also found some of the tools include some headers from linux or glibc that you wouldn’t find on mac os, like linux/types.h and elf.h.I’ve extracted a sufficient set of these headers and I install them /usr/local ( https://github.com/smoofra/fake-glibc ) If something relies on

Re: [OpenWrt-Devel] [PATCH] allow HOST* variables to be set from config.

2015-07-20 Thread Lawrence D'Anna
On Jul 19, 2015, at 10:45 PM, Lawrence D'Anna la...@elder-gods.org wrote: On Jul 19, 2015, at 10:33 PM, Felix Fietkau n...@openwrt.org wrote: On 2015-07-20 07:27, Lawrence D'Anna wrote: I’m using homebrew.One of the libraries that seems to be needed is a modern version of openssl

Re: [OpenWrt-Devel] [PATCH] allow HOST* variables to be set from config.

2015-07-20 Thread Lawrence D'Anna
On Jul 20, 2015, at 1:57 AM, Felix Fietkau n...@openwrt.org wrote: On 2015-07-20 05:25, Lawrence D'Anna wrote: These HOST* variables are used to configure all the build-time tools, but the user has no ability to modify them without editing makefiles. This patch adds a new menu

Re: [OpenWrt-Devel] [PATCH] bugfix: FORCE=1 doesn't work to override prereq checks

2015-07-20 Thread Lawrence D'Anna
What prereq can be forced that makes force even a worthwhile option? If it works anyway, why not just drop the prereq check? If it still won't work, what's the point in allowing a force? In my case it was because the prereq checks didn’t think I had openssl because they didn’t use

Re: [OpenWrt-Devel] [PATCH] gcc: add a darwin-compatibility patch for ansidecl.h

2015-07-20 Thread Lawrence D'Anna
Sorry! disregard this patch please. The problem I was seeing had nothing to do with Xcode. It was because Homebrew’s binutils had installed its own ansidecl.h which was being used instead of the ansidecl.h that came with the gcc sources. On Jul 19, 2015, at 6:52 PM, Lawrence D'Anna la

[OpenWrt-Devel] [PATCH] bugfix: FORCE=1 doesn't work to override prereq checks

2015-07-19 Thread Lawrence D'Anna
If the build prereq checks fail, you get the message Prerequisite check failed. Use FORCE=1 to override. But re-trying with make menuconfig FORCE=1 gives you the same result. This patch fixes that. Signed-off-by: Lawrence D'Anna la...@elder-gods.org --- include/prereq.mk | 2 +- 1 file

[OpenWrt-Devel] [PATCH] gcc: add a darwin-compatibility patch for ansidecl.h

2015-07-19 Thread Lawrence D'Anna
ansidecl.h is using _ANSIDECL_H as it's guard #ifdef. But names that start with underscore are reserved, and the latest version of Xcode seems to be exercising its prerogative to define _ANSIDECL_H. Signed-off-by: Lawrence D'Anna la...@elder-gods.org --- toolchain/gcc/patches/4.8-linaro/999

[OpenWrt-Devel] [PATCH] allow HOST* variables to be set from config.

2015-07-19 Thread Lawrence D'Anna
These HOST* variables are used to configure all the build-time tools, but the user has no ability to modify them without editing makefiles. This patch adds a new menu to menuconfig which allows the user to set the host compilers and flags. Signed-off-by: Lawrence D'Anna la...@elder-gods.org

Re: [OpenWrt-Devel] [PATCH] allow HOST* variables to be set from config.

2015-07-19 Thread Lawrence D'Anna
On Jul 19, 2015, at 10:33 PM, Felix Fietkau n...@openwrt.org wrote: On 2015-07-20 07:27, Lawrence D'Anna wrote: I’m using homebrew.One of the libraries that seems to be needed is a modern version of openssl. The openssl included on mac os is kind of old and isn’t compatible

Re: [OpenWrt-Devel] [PATCH] allow HOST* variables to be set from config.

2015-07-19 Thread Lawrence D'Anna
: On 2015-07-20 05:25, Lawrence D'Anna wrote: These HOST* variables are used to configure all the build-time tools, but the user has no ability to modify them without editing makefiles. This patch adds a new menu to menuconfig which allows the user to set the host compilers and flags. Signed

Re: [OpenWrt-Devel] [PATCH] allow HOST* variables to be set from config.

2015-07-19 Thread Lawrence D'Anna
version of mac os would have had linux/types.h. On Jul 19, 2015, at 10:16 PM, Felix Fietkau n...@openwrt.org wrote: On 2015-07-20 06:57, Lawrence D'Anna wrote: I like to build openwrt on a mac. Some of the host-side tools it builds need libraries and headers that aren’t included in mac os

[OpenWrt-Devel] [PATCH] mkimage: cross compile fix: pass HOST_*FLAGS in to uboot's makefile

2015-07-17 Thread Lawrence D'Anna
The HOST_*FLAGS are for compiling programs which will run on the machine that is running the build. Setting these flags is frequently required for unusual cross-compiles. Signed-off-by: Lawrence D'Anna la...@elder-gods.org --- tools/mkimage/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2

[OpenWrt-Devel] [PATCH] strace: cross compile fix: pass HOST_*FLAGS in to ./configure

2015-07-17 Thread Lawrence D'Anna
The HOST_*FLAGS are for compiling programs which will run on the machine that is running the build. Setting these flags is frequently required for unusual cross-compiles. Signed-off-by: Lawrence D'Anna la...@elder-gods.org --- package/devel/strace/Makefile | 6 ++ 1 file changed, 6

Re: [OpenWrt-Devel] [PATCH] tools/e2fsprogs: add a darwin-compat patch

2015-03-29 Thread Lawrence D'Anna
On Mar 28, 2015, at 10:22 PM, Felix Fietkau n...@openwrt.org wrote: On 2015-03-17 07:41, Lawrence D'Anna wrote: On darwin we need to import stdint to get these integer typedefs. It works for me on darwin without this patch. What version are you using, and what does the error look like

[OpenWrt-Devel] [PATCH] tools/e2fsprogs: add a darwin-compat patch

2015-03-17 Thread Lawrence D'Anna
On darwin we need to import stdint to get these integer typedefs. --- tools/e2fsprogs/patches/005-darwin-compat.patch | 26 + 1 file changed, 26 insertions(+) create mode 100644 tools/e2fsprogs/patches/005-darwin-compat.patch diff --git