mirror of
https://github.com/rosalinux/image-builder.git
synced 2025-02-23 10:22:50 +00:00
24 lines
687 B
Python
24 lines
687 B
Python
#!/usr/bin/env python
|
|
# -*- coding: utf-8 -*-
|
|
|
|
import os
|
|
import sys
|
|
import subprocess
|
|
from utils.common import clone_repo
|
|
|
|
def build_uboot(TMP_DIR, config, vendor, device):
|
|
uboot_git = config.get("UBOOT")
|
|
uboot_branch = config.get("UBOOT_VERSION")
|
|
|
|
if "UBOOT" not in config or "UBOOT_VERSION" not in config:
|
|
print("U-Boot configuration not found. Skipping U-Boot build.")
|
|
return
|
|
|
|
uboot_dir = os.path.join(TMP_DIR, vendor, device, "u-boot")
|
|
clone_repo(uboot_git, uboot_branch, uboot_dir, "u-boot")
|
|
|
|
|
|
#os.chdir(uboot_dir)
|
|
#subprocess.run(["make", config["UBOOT_CONFIG"]], check=True)
|
|
#subprocess.run(["make", "-j" + NUM_CORES], check=True)
|
|
|