Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: root issues and subprocess erro #67

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions avt_build/jetson_build/deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ def install_modules(args, board):
t = tools.tools(args)
env = { **os.environ, 'ARCH': 'arm64', 'CROSS_COMPILE': common.common_dir(args) / 'gcc/bin/aarch64-linux-gnu-', 'LANG': 'C' }
kernel_build_dir=common.common_dir(args) / "kernel"
t.execute(['sudo', 'make', f'O={kernel_build_dir}', f'INSTALL_MOD_PATH={board.build_dir / "Linux_for_Tegra/kernel/avt/kernel/debian/out"}', 'modules_install'], cwd=build.kernel_source_dir(args), env=env)
t.execute(['make', f'O={kernel_build_dir}', f'INSTALL_MOD_PATH={board.build_dir / "Linux_for_Tegra/kernel/avt/kernel/debian/out"}', 'modules_install'], cwd=build.kernel_source_dir(args), env=env)


def get_dtb_names(args, board):
Expand All @@ -287,7 +287,7 @@ def get_dtb_names(args, board):
def copy_device_trees(args, board, subdir):
logging.info(f"Copying device tree blobs");
t = tools.tools(args)
t.execute(["sudo", "cp"] + get_dtb_names(args, board) + [board.build_dir / subdir])
t.execute(["cp"] + get_dtb_names(args, board) + [board.build_dir / subdir])

def sign_device_trees(args,board,subdir):
t = tools.tools(args)
Expand All @@ -298,7 +298,7 @@ def sign_device_trees(args,board,subdir):
def copy_kernel_image(args, board):
t = tools.tools(args)
logging.info(f"Copying kernel image");
t.execute(["sudo", "cp", common.common_dir(args) / "kernel/arch/arm64/boot/Image", board.build_dir / "Linux_for_Tegra/kernel"])
t.execute(["cp", common.common_dir(args) / "kernel/arch/arm64/boot/Image", board.build_dir / "Linux_for_Tegra/kernel"])


def copy_files_to_l4t(args, board):
Expand Down
2 changes: 1 addition & 1 deletion avt_build/jetson_build/prepare.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def prepare(args, board):
t = tools.tools(args)
logging.info(f"Preparing {board.name} in {board.build_dir}")
logging.info("Extracting driver package")
t.extract(board.files.driver_package, board.build_dir, sudo=True)
t.extract(board.files.driver_package, board.build_dir)
#logging.info("Extracting rootfs")
#t.extract(board.files.rootfs, board.build_dir / 'Linux_for_Tegra/rootfs', sudo=True)
logging.warning("Extracting public_sources DISABLED")
Expand Down
2 changes: 1 addition & 1 deletion avt_build/jetson_build/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def execute(args, **kwargs):

outfile = kwargs.get('outfile', subprocess.PIPE)

sub = subprocess.Popen(args, bufsize=1, stdout=outfile, stderr=subprocess.PIPE, cwd=kwargs.get('cwd', None), env=kwargs.get('env', None))
sub = subprocess.Popen(args, stdout=outfile, stderr=subprocess.PIPE, cwd=kwargs.get('cwd', None), env=kwargs.get('env', None))

logging.verbose(f"Executing `{' '.join(str(x) for x in args)}`")

Expand Down
Loading