Re: [LEDE-DEV] Vagrant file for Lede development

2016-10-09 Thread Alberto Bursi


On 10/09/2016 07:05 PM, Simon H wrote:
> I'm looking to contribute in some small way once again.
> Not being a regular linux user, creating a build environment for
> Lede/OpenWRT has always been a time-consuming process for me.
>
> However, on other projects, I've begun to use Vagrant (specifically
> VVV for web development).
>
> Although completely new to vagrant, it's working well for me, and so i
> thought i'd give it a try for Lede.
>
> The result is on github:
>
> https://github.com/btsimonh/lede-vagrant
>
> If people think this is a good way to encourage developers to 'join
> the cause', then maybe we could host something similar in the Lede
> github, and add a 'start developing with Lede' page referencing it?
>
> looking forward to hearing comments/suggestions...
>
> best regards,
>
> Simon
>

Neat, I assume it also works for linux distros or macOS, right? (vagrant 
by itself does, I wonder about your setup config for it)

Anyway, I think we could add it to the wiki, 
https://wiki.lede-project.org/start (currently under construction) when 
we port the full development page from Openwrt's wiki, so we can offer 
something for Windows users too (and for users of other OSes that don't 
want to pollute their system with development configs and dependencies).

-Alberto

___
Lede-dev mailing list
Lede-dev@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/lede-dev


[LEDE-DEV] Vagrant file for Lede development

2016-10-09 Thread Simon H
I'm looking to contribute in some small way once again.
Not being a regular linux user, creating a build environment for
Lede/OpenWRT has always been a time-consuming process for me.

However, on other projects, I've begun to use Vagrant (specifically
VVV for web development).

Although completely new to vagrant, it's working well for me, and so i
thought i'd give it a try for Lede.

The result is on github:

https://github.com/btsimonh/lede-vagrant

If people think this is a good way to encourage developers to 'join
the cause', then maybe we could host something similar in the Lede
github, and add a 'start developing with Lede' page referencing it?

looking forward to hearing comments/suggestions...

best regards,

Simon

___
Lede-dev mailing list
Lede-dev@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/lede-dev


[LEDE-DEV] Dependency issues on custom packages and USE_MUSL visibility

2016-10-09 Thread Carlos Ferreira
Hello!
I'm having some issues regarding the implementation of new package
options, due to their peculiar dependencies.

I'm trying to implement a configuration option, which should exist
only if the package libbz2 is selected. I understand that to do this,
I should have something like this:

config new-option-with-libbz2-dependency
depends on PACKAGE_libbz2
bool "Optional support for libbz2."
default n

Now, the thing is, the building system is not building libbz2 before
the package, as a result of being a dependency, it is only hiding the
option until libbz2 is selected in the menuconfig.
Also, if I add:
select PACKAGE_libz2
it will only select the package but not build it as a dependency.

How can I force the compilation of libbz2 before the package is
compiled, when my new option is selected?


Also, I would like to know how can I use the USE_MUSL symbol to add
values to the TARGET_LDFLAGS variable. The following example seems not
to work:

TARGET_LDFLAGS += \
$(if $(@USE_MUSL), -pthread -lrt,) \


What am I doing wrong?

-- 

Carlos Miguel Ferreira
Researcher at Telecommunications Institute
Aveiro - Portugal
Work E-mail - c...@av.it.pt
Skype & GTalk -> carlosmf...@gmail.com
LinkedIn -> http://www.linkedin.com/in/carlosmferreira

___
Lede-dev mailing list
Lede-dev@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/lede-dev