* [Buildroot] GCC in my pc has been used during my customize package building
@ 2019-02-28 7:23 hoperun
0 siblings, 0 replies; 3+ messages in thread
From: hoperun @ 2019-02-28 7:23 UTC (permalink / raw)
To: buildroot
Hi all,
I am new guy in buildroot developing, and maybe have some stupid
questions.
I tried to integrate some package in github into buildroot for my
requirements. Just like the following:
################################################################################
#
# ioc-cbc-tools
#
################################################################################
IOC_CBC_TOOLS_VERSION = master
IOC_CBC_TOOLS_SITE =$(call github,intel,ioc-cbc-tools,$(IOC_CBC_TOOLS_VERSION))
IOC_CBC_TOOLS_LICENSE = BSD-3
IOC_CBC_TOOLS_LICENSE_FILES = COPYING
define IOC_CBC_TOOLS_BUILD_CMDS
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) all
endef
define IOC_CBC_TOOLS_INSTALL_CMDS
$(TARGET_MAKE_ENV) DESTDIR=$(TARGET_DIR) $(MAKE) -C $(@D) install
endef
$(eval $(generic-package))
but the makefile in this project just like this:
$(OUT_DIR)/cbc_lifecycle: cbc_lifecycle.c
gcc -o $@ $(CFLAGS) $(LDFLAGS) cbc_lifecycle.c -pthread -lacrn-mngr
clean:
rm $(OUT_DIR)/cbc_lifecycle
It take "gcc" directly. But there isn't gcc in my "buildroot/output/host/bin".
buildroot $ find output/host/ -name "*gcc"
output/host/libexec/gcc
output/host/lib/gcc
output/host/bin/x86_64-linux-gcc
output/host/bin/x86_64-xxx-linux-gnu-gcc
Could anybody give me some hints?
Thanks for any comments.
Thanks,
Jerry
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] GCC in my pc has been used during my customize package building
@ 2019-02-28 7:32 zhou_c at hoperun.com
2019-02-28 15:34 ` Henrique Marks
0 siblings, 1 reply; 3+ messages in thread
From: zhou_c at hoperun.com @ 2019-02-28 7:32 UTC (permalink / raw)
To: buildroot
Sorry, Fix the mail.
====================================================
Hi all,
I am new guy in buildroot developing, and maybe have some stupid
questions.
I tried to integrate some package in github into buildroot for my
requirements. Just like the following:
??? ################################################################################
??? #
??? # ioc-cbc-tools
??? #
??? ################################################################################
??? IOC_CBC_TOOLS_VERSION = master
??? IOC_CBC_TOOLS_SITE =$(call github,intel,ioc-cbc-tools,$(IOC_CBC_TOOLS_VERSION))
??? IOC_CBC_TOOLS_LICENSE = BSD-3
??? IOC_CBC_TOOLS_LICENSE_FILES = COPYING
???
??? define IOC_CBC_TOOLS_BUILD_CMDS
??? $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) all
??? endef
???
??? define IOC_CBC_TOOLS_INSTALL_CMDS
??? $(TARGET_MAKE_ENV) DESTDIR=$(TARGET_DIR) $(MAKE) -C $(@D) install
??? endef
???
??? $(eval $(generic-package))
but the makefile in this project just like this:
??? $(OUT_DIR)/cbc_lifecycle: cbc_lifecycle.c
??? gcc -o $@ $(CFLAGS) $(LDFLAGS) cbc_lifecycle.c -pthread -lacrn-mngr
???
??? clean:
??? rm $(OUT_DIR)/cbc_lifecycle
It take "gcc" directly. But there isn't gcc in my "buildroot/output/host/bin".
??? buildroot $ find? output/host/ -name "*gcc"
??? output/host/libexec/gcc
??? output/host/lib/gcc
??? output/host/bin/x86_64-linux-gcc
??? output/host/bin/x86_64-xxx-linux-gnu-gcc
Could anybody give me some hints?
Thanks for any comments.
Thanks,
Jerry
_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] GCC in my pc has been used during my customize package building
2019-02-28 7:32 [Buildroot] GCC in my pc has been used during my customize package building zhou_c at hoperun.com
@ 2019-02-28 15:34 ` Henrique Marks
0 siblings, 0 replies; 3+ messages in thread
From: Henrique Marks @ 2019-02-28 15:34 UTC (permalink / raw)
To: buildroot
I was looking at the original repository.
If i were you...
I would use CMake, get rid of those handcrafted Makefiles, and integrate with buildroot using the standard Cmake integration.
Honestly, those Makefiles are not good. I know they are meant to be simple, but they are not. Notice, for instance, your usage of pkg-config to define some LDFLAGS variable. This is not going to work correctly without some manual instalation of dependencies.
This is an example, just to show you that you should use something better, but that will give less headache in the near future (for instance, now...).
I don't think the problem is in buildroot here...
----- Mensagem original -----
> De: "zhou c" <zhou_c@hoperun.com>
> Para: "buildroot" <buildroot@busybox.net>
> Enviadas: Quinta-feira, 28 de fevereiro de 2019 4:32:43
> Assunto: [Buildroot] GCC in my pc has been used during my customize package building
> Sorry, Fix the mail.
>
> ====================================================
>
> Hi all,
>
> I am new guy in buildroot developing, and maybe have some stupid
> questions.
>
> I tried to integrate some package in github into buildroot for my
> requirements. Just like the following:
>
>??? ################################################################################
>??? #
>??? # ioc-cbc-tools
>??? #
>??? ################################################################################
>??? IOC_CBC_TOOLS_VERSION = master
>??? IOC_CBC_TOOLS_SITE =$(call github,intel,ioc-cbc-tools,$(IOC_CBC_TOOLS_VERSION))
>??? IOC_CBC_TOOLS_LICENSE = BSD-3
>??? IOC_CBC_TOOLS_LICENSE_FILES = COPYING
>???
>??? define IOC_CBC_TOOLS_BUILD_CMDS
>??? $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) all
>??? endef
>???
>??? define IOC_CBC_TOOLS_INSTALL_CMDS
>??? $(TARGET_MAKE_ENV) DESTDIR=$(TARGET_DIR) $(MAKE) -C $(@D) install
>??? endef
>???
>??? $(eval $(generic-package))
>
> but the makefile in this project just like this:
>
>??? $(OUT_DIR)/cbc_lifecycle: cbc_lifecycle.c
>??? gcc -o $@ $(CFLAGS) $(LDFLAGS) cbc_lifecycle.c -pthread -lacrn-mngr
>???
>??? clean:
>??? rm $(OUT_DIR)/cbc_lifecycle
>
> It take "gcc" directly. But there isn't gcc in my "buildroot/output/host/bin".
>
>??? buildroot $ find? output/host/ -name "*gcc"
>??? output/host/libexec/gcc
>??? output/host/lib/gcc
>??? output/host/bin/x86_64-linux-gcc
>??? output/host/bin/x86_64-xxx-linux-gnu-gcc
>
> Could anybody give me some hints?
>
> Thanks for any comments.
>
> Thanks,
> Jerry
>
>
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
>
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
--
Dr. Henrique Marks
henrique.marks at datacom.ind.br
R. Am?rica, 1000 - Eldorado do Sul - RS
CEP: 92990-000 - Brasil
Fone: +55 51 3933 3000 - Ramal 3466
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-02-28 15:34 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-02-28 7:32 [Buildroot] GCC in my pc has been used during my customize package building zhou_c at hoperun.com
2019-02-28 15:34 ` Henrique Marks
-- strict thread matches above, loose matches on Subject: below --
2019-02-28 7:23 hoperun
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox