Struggling to build external python package on out of tree build
A message that is not in the archive (sent off-list or not yet received): [email protected]
Hi Alberto,
Quoted 27 lines · Alberto Fahrenkrog
Update,
if I change $(eval $(python-koala)) to $(eval $(python-package)) I still get the same error. I assume that might have been one mistake.
Cheers,
Alberto
Alberto Fahrenkrog Senior Embedded Engineer
Orica - Perth Technology Centre
p: +61 (0) 8 6365 4056
e: [email protected]
________________________________
From: buildroot <[email protected]> on behalf of Alberto Fahrenkrog <[email protected]>
Sent: Thursday, February 23, 2023 12:42 PM
To: [email protected] <[email protected]>
Subject: [Buildroot] [Help] Struggling to build external python package on out of tree buildYou don't often get email from [email protected]. Learn why this is important<https://aka.ms/LearnAboutSenderIdentification> Hello all,
I'm trying to build a very simple custom python package following the instructions on the manual, yet I must be doing something very wrong as I get this result:
$ make python-koala make[1]: *** No rule to make target 'python-koala'. Stop. make: *** [Makefile:23: _all] Error 2
Quoted 7 lines
I create my out of tree build with:
make -C ~/opt/buildroot-2021.02/ BR2_EXTERNAL=~/Projects/br_build O=~/Projects/br_build BR2_DL_DIR=~/Projects/br_build/downloadsbr_build_defconfigOn my "
br_build" folder I have a Config.in file:
menu "Python-Libs"
source "~/Projects/br_build/package/python-koala/Config.in"
endmenu
Similar to the include file for configs, you also need an external.mk file for the project make files, with this content:
include $(sort $(wildcard ~/Projects/br_build/package/*/*.mk))
Otherwise your .mk files will not be picked up.
Quoted 1 line
In "br_build/packages/python-koala/Config.in"
The package directory is usually named 'package', not sure if this is relevant (but Config.in /external.mk have to match it).
Quoted 20 lines
config
BR2_PACKAGE_PYTHON_KOALA
??????bool "python-koala"
depends onBR2_PACKAGE_PYTHON3
??????help
?????? Python implementation of Koala LibraryIn "
br_build/packages/python-koala/python-koala.mk"
################################################################################
## python-koala # ################################################################################
PYTHON_KOALA_VERSION= 1.3.3PYTHON_KOALA_SOURCE= $(PYTHON_KOALA_VERSION).tar.gzPYTHON_KOALA_SITE= https://mywebsite.com.au/ExternalCode/koala/archive/PYTHON_KOALA_SETUP_TYPE= setuptools$(eval $(python-koala))
Quoted 8 lines
If I run "make menuconfig" I can select or deselect the package, and it's selected per default on the
br_build_defconfig(and in .config):
BR2_PACKAGE_PYTHON_KOALA=yBut if I try to run "make python-koala" I get the "no target" error. I'll still have a read and see what I might be doing wrong, but I'm very confused. Any ideas are very welcome.
Cheers,
Alberto
<cut>
Kind regards,
Andreas
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Hi Andreas,
Thank you so much! That did it! Where in the manual is external.mk explained? I missed it for sure...
Cheers,
Alberto
Alberto Fahrenkrog Senior Embedded Engineer
Orica - Perth Technology Centre
p: +61 (0) 8 6365 4056
e: [email protected]
________________________________
From: buildroot <[email protected]> on behalf of Andreas Ziegler <[email protected]>
Sent: Thursday, February 23, 2023 2:49 PM
To: Alberto Fahrenkrog <[email protected]>
Cc: [email protected] <[email protected]>
Subject: Re: [Buildroot] [Help] Struggling to build external python package on out of tree build
[You don't often get email from [email protected]. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ]
Hi Alberto,
Quoted 39 lines · Alberto Fahrenkrog
Update,
if I change $(eval $(python-koala)) to $(eval $(python-package)) I still get the same error. I assume that might have been one mistake.
Cheers,
Alberto
Alberto Fahrenkrog Senior Embedded Engineer
Orica - Perth Technology Centre
p: +61 (0) 8 6365 4056
e: [email protected]
________________________________
From: buildroot <[email protected]> on behalf of Alberto Fahrenkrog <[email protected]>
Sent: Thursday, February 23, 2023 12:42 PM
To: [email protected] <[email protected]>
Subject: [Buildroot] [Help] Struggling to build external python package on out of tree buildYou don't often get email from [email protected]. Learn why this is important<https://aka.ms/LearnAboutSenderIdentification> Hello all,
I'm trying to build a very simple custom python package following the instructions on the manual, yet I must be doing something very wrong as I get this result:
$ make python-koala make[1]: *** No rule to make target 'python-koala'. Stop. make: *** [Makefile:23: _all] Error 2I create my out of tree build with:
make -C ~/opt/buildroot-2021.02/ BR2_EXTERNAL=~/Projects/br_build O=~/Projects/br_build BR2_DL_DIR=~/Projects/br_build/downloadsbr_build_defconfig
Quoted 4 lines
On my "
br_build" folder I have a Config.in file:
menu "Python-Libs"
source "~/Projects/br_build/package/python-koala/Config.in"
endmenu
Similar to the include file for configs, you also need an external.mk file for the project make files, with this content:
include $(sort $(wildcard ~/Projects/br_build/package/*/*.mk))
Otherwise your .mk files will not be picked up.
Quoted 1 line
In "br_build/packages/python-koala/Config.in"
The package directory is usually named 'package', not sure if this is relevant (but Config.in /external.mk have to match it).
Quoted 25 lines
config
BR2_PACKAGE_PYTHON_KOALA
??????bool "python-koala"
depends onBR2_PACKAGE_PYTHON3
??????help
?????? Python implementation of Koala LibraryIn "
br_build/packages/python-koala/python-koala.mk"
################################################################################
## python-koala # ################################################################################
PYTHON_KOALA_VERSION= 1.3.3PYTHON_KOALA_SOURCE= $(PYTHON_KOALA_VERSION).tar.gzPYTHON_KOALA_SITE=
https://mywebsite.com.au/ExternalCode/koala/archive/PYTHON_KOALA_SETUP_TYPE= setuptools$(eval $(python-koala))
If I run "make menuconfig" I can select or deselect the package, and it's selected per default on the
br_build_defconfig(and in .config):
BR2_PACKAGE_PYTHON_KOALA=y
Quoted 7 lines
But if I try to run "make python-koala" I get the "no target" error. I'll still have a read and see what I might be doing wrong, but I'm very confused. Any ideas are very welcome.
Cheers,
Alberto
<cut>
Kind regards,
Andreas
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Ok, I see now that external.mk is explained in chapter 9. I jumped straight to chapter 18 and missed external.mk completely. And for some reason I never found external.mk on my google searches.
Thanks all for your help!
Cheers,
Alberto
Alberto Fahrenkrog Senior Embedded Engineer
Orica - Perth Technology Centre
p: +61 (0) 8 6365 4056
e: [email protected]
________________________________
From: buildroot <[email protected]> on behalf of Alberto Fahrenkrog <[email protected]>
Sent: Thursday, February 23, 2023 3:09 PM
To: [email protected] <[email protected]>
Subject: Re: [Buildroot] [Help] Struggling to build external python package on out of tree build
You don't often get email from [email protected]. Learn why this is important<https://aka.ms/LearnAboutSenderIdentification> Hi Andreas,
Thank you so much! That did it! Where in the manual is external.mk explained? I missed it for sure...
Cheers,
Alberto
[cid:[email protected]]
Alberto Fahrenkrog
Senior Embedded Engineer
Orica ‑ Perth Technology Centre
p: +61 (0) 8 6365 4056
e: [email protected]<mailto:[email protected]>
________________________________
From: buildroot <[email protected]> on behalf of Andreas Ziegler <[email protected]>
Sent: Thursday, February 23, 2023 2:49 PM
To: Alberto Fahrenkrog <[email protected]>
Cc: [email protected] <[email protected]>
Subject: Re: [Buildroot] [Help] Struggling to build external python package on out of tree build
[You don't often get email from [email protected]. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ]
Hi Alberto,
Quoted 39 lines · Alberto Fahrenkrog
Update,
if I change $(eval $(python-koala)) to $(eval $(python-package)) I still get the same error. I assume that might have been one mistake.
Cheers,
Alberto
Alberto Fahrenkrog Senior Embedded Engineer
Orica - Perth Technology Centre
p: +61 (0) 8 6365 4056
e: [email protected]
________________________________
From: buildroot <[email protected]> on behalf of Alberto Fahrenkrog <[email protected]>
Sent: Thursday, February 23, 2023 12:42 PM
To: [email protected] <[email protected]>
Subject: [Buildroot] [Help] Struggling to build external python package on out of tree buildYou don't often get email from [email protected]. Learn why this is important<https://aka.ms/LearnAboutSenderIdentification> Hello all,
I'm trying to build a very simple custom python package following the instructions on the manual, yet I must be doing something very wrong as I get this result:
$ make python-koala make[1]: *** No rule to make target 'python-koala'. Stop. make: *** [Makefile:23: _all] Error 2I create my out of tree build with:
make -C ~/opt/buildroot-2021.02/ BR2_EXTERNAL=~/Projects/br_build O=~/Projects/br_build BR2_DL_DIR=~/Projects/br_build/downloadsbr_build_defconfig
Quoted 4 lines
On my "
br_build" folder I have a Config.in file:
menu "Python-Libs"
source "~/Projects/br_build/package/python-koala/Config.in"
endmenu
Similar to the include file for configs, you also need an external.mk file for the project make files, with this content:
include $(sort $(wildcard ~/Projects/br_build/package/*/*.mk))
Otherwise your .mk files will not be picked up.
Quoted 1 line
In "br_build/packages/python-koala/Config.in"
The package directory is usually named 'package', not sure if this is relevant (but Config.in /external.mk have to match it).
Quoted 25 lines
config
BR2_PACKAGE_PYTHON_KOALA
??????bool "python-koala"
depends onBR2_PACKAGE_PYTHON3
??????help
?????? Python implementation of Koala LibraryIn "
br_build/packages/python-koala/python-koala.mk"
################################################################################
## python-koala # ################################################################################
PYTHON_KOALA_VERSION= 1.3.3PYTHON_KOALA_SOURCE= $(PYTHON_KOALA_VERSION).tar.gzPYTHON_KOALA_SITE=
https://mywebsite.com.au/ExternalCode/koala/archive/PYTHON_KOALA_SETUP_TYPE= setuptools$(eval $(python-koala))
If I run "make menuconfig" I can select or deselect the package, and it's selected per default on the
br_build_defconfig(and in .config):
BR2_PACKAGE_PYTHON_KOALA=y
Quoted 7 lines
But if I try to run "make python-koala" I get the "no target" error. I'll still have a read and see what I might be doing wrong, but I'm very confused. Any ideas are very welcome.
Cheers,
Alberto
<cut>
Kind regards,
Andreas
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Hi all, I'm slowly getting ahead with this, and I still have a few more questions...
I'm trying to get a tar.gz file from a git repo, which needs authentication. The command that works manually is:
wget https://outwebsite.com/koala/archive/release1.2.3.tar.gz --header 'Authorization: token MY_TOKEN'
And the .mk file is configured as:PYTHON_KOALA_SITE_METHOD = wgetPYTHON_KOALA_DL_OPTS = --header 'Authorization: token MY_TOKEN' PYTHON_KOALA_SITE = https://outwebsite.com/koala/archive/
The .mk file is being read correctly, but I can't figure out how to use DL_OPTS. The manual says DL_OPTS is a space separated list, but i see wget tries to use "token" or "MY_TOKEN" as the address. I tried a few different combinations of inverted commas, but none worked.
Thanks again,
Alberto
Alberto Fahrenkrog Senior Embedded Engineer
Orica - Perth Technology Centre
p: +61 (0) 8 6365 4056
e: [email protected]
________________________________
From: Alberto Fahrenkrog <[email protected]>
Sent: Thursday, February 23, 2023 3:13 PM
To: [email protected] <[email protected]>
Subject: Re: [Buildroot] [Help] Struggling to build external python package on out of tree build
Ok, I see now that external.mk is explained in chapter 9. I jumped straight to chapter 18 and missed external.mk completely. And for some reason I never found external.mk on my google searches.
Thanks all for your help!
Cheers,
Alberto
________________________________
From: buildroot <[email protected]> on behalf of Alberto Fahrenkrog <[email protected]>
Sent: Thursday, February 23, 2023 3:09 PM
To: [email protected] <[email protected]>
Subject: Re: [Buildroot] [Help] Struggling to build external python package on out of tree build
You don't often get email from [email protected]. Learn why this is important<https://aka.ms/LearnAboutSenderIdentification> Hi Andreas,
Thank you so much! That did it! Where in the manual is external.mk explained? I missed it for sure...
Cheers,
Alberto
[cid:[email protected]]
Alberto Fahrenkrog
Senior Embedded Engineer
Orica ‑ Perth Technology Centre
p: +61 (0) 8 6365 4056
e: [email protected]<mailto:[email protected]>
________________________________
From: buildroot <[email protected]> on behalf of Andreas Ziegler <[email protected]>
Sent: Thursday, February 23, 2023 2:49 PM
To: Alberto Fahrenkrog <[email protected]>
Cc: [email protected] <[email protected]>
Subject: Re: [Buildroot] [Help] Struggling to build external python package on out of tree build
[You don't often get email from [email protected]. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ]
Hi Alberto,
Quoted 39 lines · Alberto Fahrenkrog
Update,
if I change $(eval $(python-koala)) to $(eval $(python-package)) I still get the same error. I assume that might have been one mistake.
Cheers,
Alberto
Alberto Fahrenkrog Senior Embedded Engineer
Orica - Perth Technology Centre
p: +61 (0) 8 6365 4056
e: [email protected]
________________________________
From: buildroot <[email protected]> on behalf of Alberto Fahrenkrog <[email protected]>
Sent: Thursday, February 23, 2023 12:42 PM
To: [email protected] <[email protected]>
Subject: [Buildroot] [Help] Struggling to build external python package on out of tree buildYou don't often get email from [email protected]. Learn why this is important<https://aka.ms/LearnAboutSenderIdentification> Hello all,
I'm trying to build a very simple custom python package following the instructions on the manual, yet I must be doing something very wrong as I get this result:
$ make python-koala make[1]: *** No rule to make target 'python-koala'. Stop. make: *** [Makefile:23: _all] Error 2I create my out of tree build with:
make -C ~/opt/buildroot-2021.02/ BR2_EXTERNAL=~/Projects/br_build O=~/Projects/br_build BR2_DL_DIR=~/Projects/br_build/downloadsbr_build_defconfig
Quoted 4 lines
On my "
br_build" folder I have a Config.in file:
menu "Python-Libs"
source "~/Projects/br_build/package/python-koala/Config.in"
endmenu
Similar to the include file for configs, you also need an external.mk file for the project make files, with this content:
include $(sort $(wildcard ~/Projects/br_build/package/*/*.mk))
Otherwise your .mk files will not be picked up.
Quoted 1 line
In "br_build/packages/python-koala/Config.in"
The package directory is usually named 'package', not sure if this is relevant (but Config.in /external.mk have to match it).
Quoted 25 lines
config
BR2_PACKAGE_PYTHON_KOALA
??????bool "python-koala"
depends onBR2_PACKAGE_PYTHON3
??????help
?????? Python implementation of Koala LibraryIn "
br_build/packages/python-koala/python-koala.mk"
################################################################################
## python-koala # ################################################################################
PYTHON_KOALA_VERSION= 1.3.3PYTHON_KOALA_SOURCE= $(PYTHON_KOALA_VERSION).tar.gzPYTHON_KOALA_SITE=
https://mywebsite.com.au/ExternalCode/koala/archive/PYTHON_KOALA_SETUP_TYPE= setuptools$(eval $(python-koala))
If I run "make menuconfig" I can select or deselect the package, and it's selected per default on the
br_build_defconfig(and in .config):
BR2_PACKAGE_PYTHON_KOALA=y
Quoted 7 lines
But if I try to run "make python-koala" I get the "no target" error. I'll still have a read and see what I might be doing wrong, but I'm very confused. Any ideas are very welcome.
Cheers,
Alberto
<cut>
Kind regards,
Andreas
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 9 lines · Alberto Fahrenkrog
Hi all, I'm slowly getting ahead with this, and I still have a few more questions...
I'm trying to get a tar.gz file from a git repo, which needs authentication. The command that works manually is:
/wget https://outwebsite.com/koala/archive/release1.2.3.tar.gz --header 'Authorization: token MY_TOKEN'/ /
/
And the .mk file is configured as:
PYTHON_KOALA_SITE_METHOD = wget
PYTHON_KOALA_DL_OPTS = --header 'Authorization: tokenMY_TOKEN'
Since commit 3f2bdd0701de4f2bca7e6d96f96972e7bcabdd93 (by Yann, in Cc), it is
necessary to twice-quote the arguments to wget (and wget only). So
PYTHON_KOALA_DL_OPTS = --header "'Authorization: token MY_TOKEN'"
Yann, I honestly don't understand why this eval is needed, instead of simply
passing BR2_HG unquoted... But I didn't look too deeply into it.
Regards,
Arnout
Quoted 170 lines
PYTHON_KOALA_SITE = https://outwebsite.com/koala/archive/ <https://outwebsite.com/koala/archive/>
The .mk file is being read correctly, but I can't figure out how to use
DL_OPTS. The manual saysDL_OPTSis a space separated list, but i see wget tries to use "token" or "MY_TOKEN" as the address. I tried a few different combinations of inverted commas, but none worked.Thanks again,
Alberto
/
/
/
/
Alberto FahrenkrogSenior Embedded Engineer
Orica ‑ Perth Technology Centre
p: +61 (0) 8 6365 4056
e: *[email protected]* <mailto:[email protected]>
--------------------------------------------------------------------------------
*From:* Alberto Fahrenkrog <[email protected]>
*Sent:* Thursday, February 23, 2023 3:13 PM
*To:* [email protected] <[email protected]>
*Subject:* Re: [Buildroot] [Help] Struggling to build external python package on out of tree build
Ok, I see now that external.mk is explained in chapter 9. I jumped straight to chapter 18 and missed external.mk completely. And for some reason I never found external.mk on my google searches.Thanks all for your help!
Cheers,
Alberto
--------------------------------------------------------------------------------
*From:* buildroot <[email protected]> on behalf of Alberto Fahrenkrog <[email protected]> *Sent:* Thursday, February 23, 2023 3:09 PM
*To:* [email protected] <[email protected]>
*Subject:* Re: [Buildroot] [Help] Struggling to build external python package on out of tree buildYou don't often get email from [email protected]. Learn why this is important <https://aka.ms/LearnAboutSenderIdentification>
Hi Andreas,
Thank you so much! That did it! Where in the manual is external.mk explained? I missed it for sure...
Cheers,
Alberto
Alberto FahrenkrogSenior Embedded Engineer
Orica ‑ Perth Technology Centre
p: +61 (0) 8 6365 4056
e: *[email protected]* <mailto:[email protected]>
--------------------------------------------------------------------------------
*From:* buildroot <[email protected]> on behalf of Andreas Ziegler <[email protected]>
*Sent:* Thursday, February 23, 2023 2:49 PM
*To:* Alberto Fahrenkrog <[email protected]>
*Cc:* [email protected] <[email protected]>
*Subject:* Re: [Buildroot] [Help] Struggling to build external python package on out of tree build
[You don't often get email from [email protected]. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification <https://aka.ms/LearnAboutSenderIdentification> ]Hi Alberto,
Quoted 21 lines · Alberto Fahrenkrog
Update,
if I change $(eval $(python-koala)) to $(eval $(python-package)) I still get the same error. I assume that might have been one mistake.
Cheers,
Alberto
Alberto Fahrenkrog Senior Embedded Engineer
Orica - Perth Technology Centre
p: +61 (0) 8 6365 4056
e: [email protected]
________________________________
From: buildroot <[email protected]> on behalf of Alberto Fahrenkrog <[email protected]>
Sent: Thursday, February 23, 2023 12:42 PM
To: [email protected] <[email protected]>
Subject: [Buildroot] [Help] Struggling to build external python package on out of tree buildQuoted 3 lines
You don't often get email from [email protected]. Learn why this is important<https://aka.ms/LearnAboutSenderIdentification
<https://aka.ms/LearnAboutSenderIdentification>>
Quoted 15 lines
Hello all,
I'm trying to build a very simple custom python package following the instructions on the manual, yet I must be doing something very wrong as I get this result:
$ make python-koala make[1]: *** No rule to make target 'python-koala'. Stop. make: *** [Makefile:23: _all] Error 2I create my out of tree build with:
make -C ~/opt/buildroot-2021.02/ BR2_EXTERNAL=~/Projects/br_build O=~/Projects/br_build BR2_DL_DIR=~/Projects/br_build/downloadsbr_build_defconfigQuoted 4 lines
On my "
br_build" folder I have a Config.in file:
menu "Python-Libs"
source "~/Projects/br_build/package/python-koala/Config.in" endmenuSimilar to the include file for configs, you also need an external.mk file for the project make files, with this content:
include $(sort $(wildcard ~/Projects/br_build/package/*/*.mk))
Otherwise your .mk files will not be picked up.
Quoted 1 line
In "br_build/packages/python-koala/Config.in"
The package directory is usually named 'package', not sure if this is relevant (but Config.in /external.mk have to match it).
Quoted 9 lines
config
BR2_PACKAGE_PYTHON_KOALA
??????bool "python-koala"
depends onBR2_PACKAGE_PYTHON3
??????help
?????? Python implementation of Koala LibraryIn "
br_build/packages/python-koala/python-koala.mk"
################################################################################
#Quoted 8 lines
# python-koala # ################################################################################
PYTHON_KOALA_VERSION= 1.3.3PYTHON_KOALA_SOURCE= $(PYTHON_KOALA_VERSION).tar.gzPYTHON_KOALA_SITE=
https://mywebsite.com.au/ExternalCode/koala/archive/<https://mywebsite.com.au/ExternalCode/koala/archive/>
Quoted 8 lines
PYTHON_KOALA_SETUP_TYPE= setuptools$(eval $(python-koala))
If I run "make menuconfig" I can select or deselect the package, and it's selected per default on the
br_build_defconfig(and in .config):
BR2_PACKAGE_PYTHON_KOALA=yQuoted 7 lines
But if I try to run "make python-koala" I get the "no target" error. I'll still have a read and see what I might be doing wrong, but I'm very confused. Any ideas are very welcome.
Cheers,
Alberto
<cut>
Kind regards,
Andreas
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot <https://lists.buildroot.org/mailman/listinfo/buildroot>
Quoted 4 lines
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Arnout, All,
On 2023-02-23 20:39 +0100, Arnout Vandecappelle spake thusly:
Quoted 13 lines · Alberto Fahrenkrog
Quoted 11 lines
Hi all, I'm slowly getting ahead with this, and I still have a few more questions...
I'm trying to get a tar.gz file from a git repo, which needs authentication. The command that works manually is:
/wget https://outwebsite.com/koala/archive/release1.2.3.tar.gz --header 'Authorization: token MY_TOKEN'/
/
/
And the .mk file is configured as:
PYTHON_KOALA_SITE_METHOD = wget
PYTHON_KOALA_DL_OPTS = --header 'Authorization: tokenMY_TOKEN'
Quoted 2 lines
Since commit
3f2bdd0701de4f2bca7e6d96f96972e7bcabdd93(by Yann, in Cc), it
is necessary to twice-quote the arguments to wget (and wget only). So
Oh dang, a commit from 7 years ago... ;-)
Quoted 4 lines
PYTHON_KOALA_DL_OPTS= --header "'Authorization: tokenMY_TOKEN'"Yann, I honestly don't understand why this eval is needed, instead of
simply passingBR2_HGunquoted... But I didn't look too deeply into it.
That's because that does not work?
$ cat ess
#!/usr/bin/env bash
bar() {
for i in "${@}"; do
printf '__%s__\n' "${i}"
done
}
MY_CMD="bar '1 2 3' a b 'C D'"
${MY_CMD} START "${@}" END
echo
MY_CMD="./foo '1 2 3' a b 'C D'"
${MY_CMD} START "${@}" END $ cat foo
#!/usr/bin/env bash
for i in "${@}"; do
printf '>>%s<<\n' "${i}"
done $ ./ess wee woo "woot woot"
__'1__
__2__
__3'__
__a__
__b__
__'C__
__D'__
__START__
__wee__
__woo__
__woot woot__
__END__Quoted 4 lines
Quoted 4 lines
'1<<
2<<
3'<<
a<<
Quoted 8 lines
Quoted 8 lines
b<<
'C<<
D'<<
START<<
wee<<
woo<<
woot woot<<
END<<
So, if the command for a downloader, as provided in the .config, contains quoted material, the quotes would be part of the word.
Regards,
Yann E. MORIN.
Quoted 197 lines
Regards,
ArnoutQuoted 193 lines
PYTHON_KOALA_SITE = https://outwebsite.com/koala/archive/
<https://outwebsite.com/koala/archive/>The .mk file is being read correctly, but I can't figure out how to use
DL_OPTS. The manual saysDL_OPTSis a space separated list, but i see wget tries to use "token" or "MY_TOKEN" as the address. I tried a few different combinations of inverted commas, but none worked.Thanks again,
Alberto
/
/
/
/
Alberto FahrenkrogSenior Embedded Engineer
Orica ‑ Perth Technology Centre
p: +61 (0) 8 6365 4056
e: *[email protected]* <mailto:[email protected]>
--------------------------------------------------------------------------------
*From:* Alberto Fahrenkrog <[email protected]> *Sent:* Thursday, February 23, 2023 3:13 PM
*To:* [email protected] <[email protected]> *Subject:* Re: [Buildroot] [Help] Struggling to build external python package on out of tree build
Ok, I see now that external.mk is explained in chapter 9. I jumped straight to chapter 18 and missed external.mk completely. And for some reason I never found external.mk on my google searches.Thanks all for your help!
Cheers,
Alberto
--------------------------------------------------------------------------------
*From:* buildroot <[email protected]> on behalf of Alberto Fahrenkrog <[email protected]> *Sent:* Thursday, February 23, 2023 3:09 PM
*To:* [email protected] <[email protected]> *Subject:* Re: [Buildroot] [Help] Struggling to build external python package on out of tree buildYou don't often get email from [email protected]. Learn why this is important
<https://aka.ms/LearnAboutSenderIdentification>Hi Andreas,
Thank you so much! That did it! Where in the manual is external.mk explained? I missed it for sure...
Cheers,
Alberto
Alberto FahrenkrogSenior Embedded Engineer
Orica ‑ Perth Technology Centre
p: +61 (0) 8 6365 4056
e: *[email protected]* <mailto:[email protected]>
--------------------------------------------------------------------------------
*From:* buildroot <[email protected]> on behalf of Andreas Ziegler <[email protected]>
*Sent:* Thursday, February 23, 2023 2:49 PM
*To:* Alberto Fahrenkrog <[email protected]> *Cc:* [email protected] <[email protected]> *Subject:* Re: [Buildroot] [Help] Struggling to build external python package on out of tree build
[You don't often get email from [email protected]. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification
<https://aka.ms/LearnAboutSenderIdentification> ]Hi Alberto,
Quoted 21 lines · Alberto Fahrenkrog
Update,
if I change $(eval $(python-koala)) to $(eval $(python-package)) I still get the same error. I assume that might have been one mistake.
Cheers,
Alberto
Alberto Fahrenkrog Senior Embedded Engineer
Orica - Perth Technology Centre
p: +61 (0) 8 6365 4056
e: [email protected]
________________________________
From: buildroot <[email protected]> on behalf of Alberto Fahrenkrog <[email protected]>
Sent: Thursday, February 23, 2023 12:42 PM
To: [email protected] <[email protected]>
Subject: [Buildroot] [Help] Struggling to build external python package on out of tree buildQuoted 3 lines
You don't often get email from [email protected]. Learn why this is important<https://aka.ms/LearnAboutSenderIdentification
<https://aka.ms/LearnAboutSenderIdentification>>
Quoted 15 lines
Hello all,
I'm trying to build a very simple custom python package following the instructions on the manual, yet I must be doing something very wrong as I get this result:
$ make python-koala make[1]: *** No rule to make target 'python-koala'. Stop. make: *** [Makefile:23: _all] Error 2I create my out of tree build with:
make -C ~/opt/buildroot-2021.02/ BR2_EXTERNAL=~/Projects/br_build O=~/Projects/br_build BR2_DL_DIR=~/Projects/br_build/downloadsbr_build_defconfigQuoted 4 lines
On my "
br_build" folder I have a Config.in file:
menu "Python-Libs"
source "~/Projects/br_build/package/python-koala/Config.in" endmenuSimilar to the include file for configs, you also need an external.mk file for the project make files, with this content:
include $(sort $(wildcard ~/Projects/br_build/package/*/*.mk))
Otherwise your .mk files will not be picked up.
Quoted 1 line
In "br_build/packages/python-koala/Config.in"
The package directory is usually named 'package', not sure if this is relevant (but Config.in /external.mk have to match it).
Quoted 9 lines
config
BR2_PACKAGE_PYTHON_KOALA
??????bool "python-koala"
depends onBR2_PACKAGE_PYTHON3
??????help
?????? Python implementation of Koala LibraryIn "
br_build/packages/python-koala/python-koala.mk"
################################################################################
#Quoted 8 lines
# python-koala # ################################################################################
PYTHON_KOALA_VERSION= 1.3.3PYTHON_KOALA_SOURCE= $(PYTHON_KOALA_VERSION).tar.gzPYTHON_KOALA_SITE=
https://mywebsite.com.au/ExternalCode/koala/archive/<https://mywebsite.com.au/ExternalCode/koala/archive/>
Quoted 8 lines
PYTHON_KOALA_SETUP_TYPE= setuptools$(eval $(python-koala))
If I run "make menuconfig" I can select or deselect the package, and it's selected per default on the
br_build_defconfig(and in .config):
BR2_PACKAGE_PYTHON_KOALA=yQuoted 7 lines
But if I try to run "make python-koala" I get the "no target" error. I'll still have a read and see what I might be doing wrong, but I'm very confused. Any ideas are very welcome.
Cheers,
Alberto
<cut>
Kind regards,
Andreas
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
<https://lists.buildroot.org/mailman/listinfo/buildroot>_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Signature · 10 lines
.-----------------.--------------------.------------------.--------------------. | 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. | '------------------------------^-------^------------------^--------------------' _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Yann, Arnout, thanks a lot. I just tried this and it worked beautifully! I really appreciate your support.
Cheers,
Alberto
Alberto Fahrenkrog Senior Embedded Engineer
Orica - Perth Technology Centre
p: +61 (0) 8 6365 4056
e: [email protected]
________________________________
From: Yann E. MORIN <[email protected]>
Sent: Friday, February 24, 2023 3:54 AM
To: Arnout Vandecappelle <[email protected]>
Cc: Alberto Fahrenkrog <[email protected]>; [email protected] <[email protected]>
Subject: Re: [Buildroot] [Help] Struggling to build external python package on out of tree build
Arnout, All,
On 2023-02-23 20:39 +0100, Arnout Vandecappelle spake thusly:
Quoted 13 lines · Alberto Fahrenkrog
Quoted 11 lines
Hi all, I'm slowly getting ahead with this, and I still have a few more questions...
I'm trying to get a tar.gz file from a git repo, which needs authentication. The command that works manually is:
/wget https://outwebsite.com/koala/archive/release1.2.3.tar.gz --header 'Authorization: token MY_TOKEN'/
/
/
And the .mk file is configured as:PYTHON_KOALA_SITE_METHOD= wgetPYTHON_KOALA_DL_OPTS= --header 'Authorization: tokenMY_TOKEN'
Quoted 2 lines
Since commit
3f2bdd0701de4f2bca7e6d96f96972e7bcabdd93(by Yann, in Cc), it
is necessary to twice-quote the arguments to wget (and wget only). So
Oh dang, a commit from 7 years ago... ;-)
Quoted 4 lines
PYTHON_KOALA_DL_OPTS= --header "'Authorization: tokenMY_TOKEN'"Yann, I honestly don't understand why this eval is needed, instead of
simply passingBR2_HGunquoted... But I didn't look too deeply into it.
That's because that does not work?
$ cat ess
#!/usr/bin/env bash
bar() {
for i in "${@}"; do
printf '__%s__\n' "${i}"
done
}
MY_CMD="bar '1 2 3' a b 'C D'"
${MY_CMD} START "${@}" END
echo
MY_CMD="./foo '1 2 3' a b 'C D'"
${MY_CMD} START "${@}" END $ cat foo
#!/usr/bin/env bash
for i in "${@}"; do
printf '>>%s<<\n' "${i}"
done $ ./ess wee woo "woot woot"
__'1__
__2__
__3'__
__a__
__b__
__'C__
__D'__
__START__
__wee__
__woo__
__woot woot__
__END__Quoted 4 lines
Quoted 4 lines
'1<<
2<<
3'<<
a<<
Quoted 8 lines
Quoted 8 lines
b<<
'C<<
D'<<
START<<
wee<<
woo<<
woot woot<<
END<<
So, if the command for a downloader, as provided in the .config, contains quoted material, the quotes would be part of the word.
Regards,
Yann E. MORIN.
Quoted 197 lines
Regards,
ArnoutQuoted 193 lines
PYTHON_KOALA_SITE= https://outwebsite.com/koala/archive/
<https://outwebsite.com/koala/archive/>The .mk file is being read correctly, but I can't figure out how to use
DL_OPTS. The manual saysDL_OPTSis a space separated list, but i see wget tries to use "token" or "MY_TOKEN" as the address. I tried a few different combinations of inverted commas, but none worked.Thanks again,
Alberto
/
/
/
/
Alberto FahrenkrogSenior Embedded Engineer
Orica ‑ Perth Technology Centre
p: +61 (0) 8 6365 4056
e: *[email protected]* <mailto:[email protected]>
--------------------------------------------------------------------------------
*From:* Alberto Fahrenkrog <[email protected]> *Sent:* Thursday, February 23, 2023 3:13 PM
*To:* [email protected] <[email protected]> *Subject:* Re: [Buildroot] [Help] Struggling to build external python package on out of tree build
Ok, I see now that external.mk is explained in chapter 9. I jumped straight to chapter 18 and missed external.mk completely. And for some reason I never found external.mk on my google searches.Thanks all for your help!
Cheers,
Alberto
--------------------------------------------------------------------------------
*From:* buildroot <[email protected]> on behalf of Alberto Fahrenkrog <[email protected]> *Sent:* Thursday, February 23, 2023 3:09 PM
*To:* [email protected] <[email protected]> *Subject:* Re: [Buildroot] [Help] Struggling to build external python package on out of tree buildYou don't often get email from [email protected]. Learn why this is important
<https://aka.ms/LearnAboutSenderIdentification>Hi Andreas,
Thank you so much! That did it! Where in the manual is external.mk explained? I missed it for sure...
Cheers,
Alberto
Alberto FahrenkrogSenior Embedded Engineer
Orica ‑ Perth Technology Centre
p: +61 (0) 8 6365 4056
e: *[email protected]* <mailto:[email protected]>
--------------------------------------------------------------------------------
*From:* buildroot <[email protected]> on behalf of Andreas Ziegler <[email protected]>
*Sent:* Thursday, February 23, 2023 2:49 PM
*To:* Alberto Fahrenkrog <[email protected]> *Cc:* [email protected] <[email protected]> *Subject:* Re: [Buildroot] [Help] Struggling to build external python package on out of tree build
[You don't often get email from [email protected]. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification
<https://aka.ms/LearnAboutSenderIdentification> ]Hi Alberto,
Quoted 21 lines · Alberto Fahrenkrog
Update,
if I change $(eval $(python-koala)) to $(eval $(python-package)) I still get the same error. I assume that might have been one mistake.
Cheers,
Alberto
Alberto Fahrenkrog Senior Embedded Engineer
Orica - Perth Technology Centre
p: +61 (0) 8 6365 4056
e: [email protected]
________________________________
From: buildroot <[email protected]> on behalf of Alberto Fahrenkrog <[email protected]>
Sent: Thursday, February 23, 2023 12:42 PM
To: [email protected] <[email protected]>
Subject: [Buildroot] [Help] Struggling to build external python package on out of tree buildQuoted 3 lines
You don't often get email from [email protected]. Learn why this is important<https://aka.ms/LearnAboutSenderIdentification
<https://aka.ms/LearnAboutSenderIdentification>>
Quoted 15 lines
Hello all,
I'm trying to build a very simple custom python package following the instructions on the manual, yet I must be doing something very wrong as I get this result:
$ make python-koala make[1]: *** No rule to make target 'python-koala'. Stop. make: *** [Makefile:23: _all] Error 2I create my out of tree build with:
make -C ~/opt/buildroot-2021.02/ BR2_EXTERNAL=~/Projects/br_build O=~/Projects/br_build BR2_DL_DIR=~/Projects/br_build/downloadsbr_build_defconfigQuoted 4 lines
On my "
br_build" folder I have a Config.in file:
menu "Python-Libs"
source "~/Projects/br_build/package/python-koala/Config.in"
endmenuSimilar to the include file for configs, you also need an external.mk file for the project make files, with this content:
include $(sort $(wildcard ~/Projects/br_build/package/*/*.mk))Otherwise your .mk files will not be picked up.
Quoted 1 line
In "br_build/packages/python-koala/Config.in"
The package directory is usually named 'package', not sure if this is relevant (but Config.in /external.mk have to match it).
Quoted 9 lines
config
BR2_PACKAGE_PYTHON_KOALA
??????bool "python-koala"
depends onBR2_PACKAGE_PYTHON3
??????help
?????? Python implementation of Koala LibraryIn "
br_build/packages/python-koala/python-koala.mk"
################################################################################
#Quoted 8 lines
# python-koala # ################################################################################
PYTHON_KOALA_VERSION= 1.3.3PYTHON_KOALA_SOURCE= $(PYTHON_KOALA_VERSION).tar.gzPYTHON_KOALA_SITE=
https://mywebsite.com.au/ExternalCode/koala/archive/<https://mywebsite.com.au/ExternalCode/koala/archive/>
Quoted 8 lines
PYTHON_KOALA_SETUP_TYPE= setuptools$(eval $(python-koala))
If I run "make menuconfig" I can select or deselect the package, and it's selected per default on the
br_build_defconfig(and in .config):
BR2_PACKAGE_PYTHON_KOALA=yQuoted 7 lines
But if I try to run "make python-koala" I get the "no target" error. I'll still have a read and see what I might be doing wrong, but I'm very confused. Any ideas are very welcome.
Cheers,
Alberto
<cut>
Kind regards,
Andreas
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
<https://lists.buildroot.org/mailman/listinfo/buildroot>_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/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. |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot