[Buildroot] [Help] Struggling to build external python package on out of tree build

Alberto Fahrenkrog Alberto.Fahrenkrog at rigtechnologies.com.au
Thu Feb 23 04:42:53 UTC 2023


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

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/downloads br_build_defconfig

On my "br_build" folder I have a Config.in file:
menu "Python-Libs"
    source "~/Projects/br_build/package/python-koala/Config.in"
endmenu

In "br_build/packages/python-koala/Config.in"
config BR2_PACKAGE_PYTHON_KOALA
      bool "python-koala"
  depends on BR2_PACKAGE_PYTHON3
      help
        Python implementation of Koala Library

In "br_build/packages/python-koala/python-koala.mk"
################################################################################
#
# python-koala
#
################################################################################

PYTHON_KOALA_VERSION = 1.3.3
PYTHON_KOALA_SOURCE = $(PYTHON_KOALA_VERSION).tar.gz
PYTHON_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

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




Alberto Fahrenkrog Senior Embedded Engineer 
Orica - Perth Technology Centre
p: +61 (0) 8 6365 4056
e: Alberto.Fahrenkrog at rigtechnologies.com.au
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.buildroot.org/pipermail/buildroot/attachments/20230223/068fe57e/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image900784.png
Type: image/png
Size: 14270 bytes
Desc: image900784.png
URL: <http://lists.buildroot.org/pipermail/buildroot/attachments/20230223/068fe57e/attachment.png>


More information about the buildroot mailing list