Yes, this is to copy it into the chroot (not sure how that relates?)
The problem is that the source path is hardcoded:
# FIXME: This is an ugly hack to make sure we use the l-h-i script from
# the current development tree when possible.
here = os.path.dirname(__file__)
linaro_hwpack_install_path = os.path.join(
here, '..', 'linaro-hwpack-install')
if not os.path.exists(linaro_hwpack_install_path): linaro_hwpack_install_path = '/usr/bin/linaro-hwpack-install'
copy_file(linaro_hwpack_install_path, os.path.join(chroot_dir, 'usr', 'bin'))
(the chroot/usr/bin dest path is ok, usr/local/bin or custom dir might be more elegant though)
Yes, this is to copy it into the chroot (not sure how that relates?)
The problem is that the source path is hardcoded: dirname( __file_ _) hwpack_ install_ path = os.path.join( hwpack- install' ) exists( linaro_ hwpack_ install_ path):
linaro_ hwpack_ install_ path = '/usr/bin/ linaro- hwpack- install' file(linaro_ hwpack_ install_ path,
os.path. join(chroot_ dir, 'usr', 'bin'))
# FIXME: This is an ugly hack to make sure we use the l-h-i script from
# the current development tree when possible.
here = os.path.
linaro_
here, '..', 'linaro-
if not os.path.
copy_
(the chroot/usr/bin dest path is ok, usr/local/bin or custom dir might be more elegant though)