From 3439b44a64dfaf923dbc3de5896b3a1863897495 Mon Sep 17 00:00:00 2001 From: rdrehmel Date: Tue, 4 Jun 2024 12:07:37 +0200 Subject: [PATCH] Fix copying output files to the TFTP directory if CONFIG_SUBSYSTEM_COPY_TO_TFTPBOOT=y This fixes the error [ERROR] module 'plnx_vars' has no attribute 'CopyDir' when building PetaLinux projects for which CONFIG_SUBSYSTEM_COPY_TO_TFTPBOOT is enabled. --- scripts/petalinux-build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/petalinux-build b/scripts/petalinux-build index ba2d8a8..066a6aa 100755 --- a/scripts/petalinux-build +++ b/scripts/petalinux-build @@ -146,7 +146,7 @@ def CopyToTftpDir(proot): plnx_utils.CreateDir(tftp_dir) if os.path.isdir(tftp_dir) and os.access(tftp_dir, os.W_OK): # copy all images in tftp_dir path - plnx_vars.CopyDir(plnx_vars.BuildImagesDir.format(proot), tftp_dir) + plnx_utils.CopyDir(plnx_vars.BuildImagesDir.format(proot), tftp_dir) logger.info( 'Successfully copied built images to tftp dir: %s' % tftp_dir) else: