* [Buildroot] [Question] How do I build source code at source folder?
@ 2020-04-03 9:07 Eric Hsieh
2020-04-03 9:50 ` Heiko Thiery
0 siblings, 1 reply; 7+ messages in thread
From: Eric Hsieh @ 2020-04-03 9:07 UTC (permalink / raw)
To: buildroot
Hi everyone,
Now, Im trying to create a special mode which can help me to build source
code at source folder instead of output/build folder. I checked the makefile
at package, looks like there is no directly way to be done.
So, I would like to ask is it possible to be done? If yes, please give me
some tips. Thanks.
--
Sent from: http://buildroot-busybox.2317881.n4.nabble.com/
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Buildroot] [Question] How do I build source code at source folder?
2020-04-03 9:07 [Buildroot] [Question] How do I build source code at source folder? Eric Hsieh
@ 2020-04-03 9:50 ` Heiko Thiery
2020-04-04 6:52 ` Psychesnet Hsieh
0 siblings, 1 reply; 7+ messages in thread
From: Heiko Thiery @ 2020-04-03 9:50 UTC (permalink / raw)
To: buildroot
Hi Eric,
Am Fr., 3. Apr. 2020 um 11:07 Uhr schrieb Eric Hsieh <psychesnet@gmail.com>:
>
> Hi everyone,
>
> Now, Im trying to create a special mode which can help me to build source
> code at source folder instead of output/build folder. I checked the makefile
> at package, looks like there is no directly way to be done.
> So, I would like to ask is it possible to be done? If yes, please give me
> some tips. Thanks.
If you want to build a package from an external source folder you can
specify the source directory by creating the $(CONFIG_DIR)/local.mk
file and set the <pkg>_OVERRIDE_SRCDIR varialbe. But this will
copy/rsync your sources and build your package at output/build.
Please check "8.13.6. Using Buildroot during development" in the
buildroot user manual for more information about that.
--
Heiko
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Buildroot] [Question] How do I build source code at source folder?
2020-04-03 9:50 ` Heiko Thiery
@ 2020-04-04 6:52 ` Psychesnet Hsieh
2020-04-04 6:57 ` Heiko Thiery
2020-04-04 11:41 ` Yann E. MORIN
0 siblings, 2 replies; 7+ messages in thread
From: Psychesnet Hsieh @ 2020-04-04 6:52 UTC (permalink / raw)
To: buildroot
Hi Heiko,
Thanks and yes, I know I can use _OVERRIDE_SRCDIR to define local folder as
source.
But what I need is directly build source code at source folder without
copy/rsync.
And eventually the target object will install into output/fakeroot folder.
Do you have any idea to get it done? Thanks.
Heiko Thiery <heiko.thiery@gmail.com> ? 2020?4?3? ?? ??5:51???
> Hi Eric,
>
> Am Fr., 3. Apr. 2020 um 11:07 Uhr schrieb Eric Hsieh <psychesnet@gmail.com
> >:
> >
> > Hi everyone,
> >
> > Now, Im trying to create a special mode which can help me to build source
> > code at source folder instead of output/build folder. I checked the
> makefile
> > at package, looks like there is no directly way to be done.
> > So, I would like to ask is it possible to be done? If yes, please give me
> > some tips. Thanks.
>
> If you want to build a package from an external source folder you can
> specify the source directory by creating the $(CONFIG_DIR)/local.mk
> file and set the <pkg>_OVERRIDE_SRCDIR varialbe. But this will
> copy/rsync your sources and build your package at output/build.
>
> Please check "8.13.6. Using Buildroot during development" in the
> buildroot user manual for more information about that.
>
> --
> Heiko
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20200404/3e7c4930/attachment.html>
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Buildroot] [Question] How do I build source code at source folder?
2020-04-04 6:52 ` Psychesnet Hsieh
@ 2020-04-04 6:57 ` Heiko Thiery
2020-04-04 13:24 ` Psychesnet Hsieh
2020-04-04 11:41 ` Yann E. MORIN
1 sibling, 1 reply; 7+ messages in thread
From: Heiko Thiery @ 2020-04-04 6:57 UTC (permalink / raw)
To: buildroot
Hi,
Am Sa., 4. Apr. 2020 um 08:52 Uhr schrieb Psychesnet Hsieh
<psychesnet@gmail.com>:
>
> Hi Heiko,
>
> Thanks and yes, I know I can use _OVERRIDE_SRCDIR to define local folder as source.
> But what I need is directly build source code at source folder without copy/rsync.
> And eventually the target object will install into output/fakeroot folder.
> Do you have any idea to get it done? Thanks.
I don't understand why you need to build in the source directory. Can
you give some more background information about that?
--
Heiko
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Buildroot] [Question] How do I build source code at source folder?
2020-04-04 6:52 ` Psychesnet Hsieh
2020-04-04 6:57 ` Heiko Thiery
@ 2020-04-04 11:41 ` Yann E. MORIN
1 sibling, 0 replies; 7+ messages in thread
From: Yann E. MORIN @ 2020-04-04 11:41 UTC (permalink / raw)
To: buildroot
Psychesnet, All,
On 2020-04-04 14:52 +0800, Psychesnet Hsieh spake thusly:
> Thanks and yes, I know I can use _OVERRIDE_SRCDIR to define local folder as source.
> But what I need is directly build source code at source folder without copy/rsync.
That is not possible.
Regards,
Yann E. MORIN.
> And eventually the target object will install into output/fakeroot folder.
> Do you have any idea to get it done? Thanks.
> Heiko Thiery < [1]heiko.thiery@gmail.com> ? 2020?4?3? ??
> ??5:51???
>
> Hi Eric,
>
> Am Fr., 3. Apr. 2020 um 11:07 Uhr schrieb Eric Hsieh < [2]psychesnet@gmail.com>:
> >
> > Hi everyone,
> >
> > Now, Im trying to create a special mode which can help me to build source
> > code at source folder instead of output/build folder. I checked the makefile
> > at package, looks like there is no directly way to be done.
> > So, I would like to ask is it possible to be done? If yes, please give me
> > some tips. Thanks.
>
> If you want to build a package from an external source folder you can
> specify the source directory by creating the? $(CONFIG_DIR)/ [3]local.mk
> file and set the <pkg>_OVERRIDE_SRCDIR varialbe. But this will
> copy/rsync your sources and build your package at output/build.
>
> Please check "8.13.6. Using Buildroot during development" in the
> buildroot user manual for more information about that.
>
> --
> Heiko
>
> Links:
> 1. mailto:heiko.thiery at gmail.com
> 2. mailto:psychesnet at gmail.com
> 3. http://local.mk
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Buildroot] [Question] How do I build source code at source folder?
2020-04-04 6:57 ` Heiko Thiery
@ 2020-04-04 13:24 ` Psychesnet Hsieh
2020-04-06 11:59 ` Heiko Thiery
0 siblings, 1 reply; 7+ messages in thread
From: Psychesnet Hsieh @ 2020-04-04 13:24 UTC (permalink / raw)
To: buildroot
Hi Heiko,
From previous and some projects, we would like to build 3 kinds of source
code in our code base.
1. Directly build from open source, like lighttpd and ffmpeg. Basically, we
don't need to change this a lot.
Put some patches and apply menuconfig to select enable/disable it.
Anything is good. This one, Buildroot can help a lot.
2. Some binary code/source code from vendor/SDK. This one is familiar to
open source, we don't need to change a lot, too.
Follow SDK instructions and apply patch to Buildroot is enough to get
anything done.
3. Source code from our side, this part we change a lot and we would like
to build it at source folder because
A. We change git log at source folder, we can trace anything quickly,
don't need to switch folder to build.
B. We can build one source code instead of check anything, it is faster
to build(makefile check dependency) and install into fakeroot folder to try.
C. We won't forget to commit the code, because any operations at source
folder.
I believe buildroot is the best for small embedded system, and we would
like to try if we can get item 3 done in our project.
I hope anything is clear. Thanks.
Heiko Thiery <heiko.thiery@gmail.com> ? 2020?4?4? ?? ??2:58???
> Hi,
>
> Am Sa., 4. Apr. 2020 um 08:52 Uhr schrieb Psychesnet Hsieh
> <psychesnet@gmail.com>:
> >
> > Hi Heiko,
> >
> > Thanks and yes, I know I can use _OVERRIDE_SRCDIR to define local folder
> as source.
> > But what I need is directly build source code at source folder without
> copy/rsync.
> > And eventually the target object will install into output/fakeroot
> folder.
> > Do you have any idea to get it done? Thanks.
>
> I don't understand why you need to build in the source directory. Can
> you give some more background information about that?
>
> --
> Heiko
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20200404/2603e8a6/attachment.html>
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Buildroot] [Question] How do I build source code at source folder?
2020-04-04 13:24 ` Psychesnet Hsieh
@ 2020-04-06 11:59 ` Heiko Thiery
0 siblings, 0 replies; 7+ messages in thread
From: Heiko Thiery @ 2020-04-06 11:59 UTC (permalink / raw)
To: buildroot
Psychesnet, All,
Am Sa., 4. Apr. 2020 um 15:24 Uhr schrieb Psychesnet Hsieh
<psychesnet@gmail.com>:
>
> Hi Heiko,
>
> From previous and some projects, we would like to build 3 kinds of source code in our code base.
> 1. Directly build from open source, like lighttpd and ffmpeg. Basically, we don't need to change this a lot.
> Put some patches and apply menuconfig to select enable/disable it. Anything is good. This one, Buildroot can help a lot.
> 2. Some binary code/source code from vendor/SDK. This one is familiar to open source, we don't need to change a lot, too.
> Follow SDK instructions and apply patch to Buildroot is enough to get anything done.
> 3. Source code from our side, this part we change a lot and we would like to build it at source folder because
> A. We change git log at source folder, we can trace anything quickly, don't need to switch folder to build.
> B. We can build one source code instead of check anything, it is faster to build(makefile check dependency) and install into fakeroot folder to try.
> C. We won't forget to commit the code, because any operations at source folder.
>
> I believe buildroot is the best for small embedded system, and we would like to try if we can get item 3 done in our project.
> I hope anything is clear. Thanks.
Sorry but I don't see why using the proposed <pkg>_OVERRIDE_SRCDIR
will solve the things you want to achieve in item 3.
--
Heiko
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2020-04-06 11:59 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-04-03 9:07 [Buildroot] [Question] How do I build source code at source folder? Eric Hsieh
2020-04-03 9:50 ` Heiko Thiery
2020-04-04 6:52 ` Psychesnet Hsieh
2020-04-04 6:57 ` Heiko Thiery
2020-04-04 13:24 ` Psychesnet Hsieh
2020-04-06 11:59 ` Heiko Thiery
2020-04-04 11:41 ` Yann E. MORIN
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox