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

Buildroot: Add python script to build Linux images. #232

Open
enjoy-digital opened this issue May 18, 2021 · 1 comment
Open

Buildroot: Add python script to build Linux images. #232

enjoy-digital opened this issue May 18, 2021 · 1 comment

Comments

@enjoy-digital
Copy link
Member

Could be used to generate the Linux images daily?/weekly?/monthly? on a local machine or on CI.

@enjoy-digital
Copy link
Member Author

This has been done for a client and could be integrated here:

# Linux Build --------------------------------------------------------------------------------------

def linux_clean():
    if os.path.exists("third_party/buildroot"):
        os.chdir("third_party/buildroot")
        os.system("make clean")

def linux_build():
    # Be sure third_party dir is present and switch to it.
    create_third_party_dir()
    os.chdir("third_party")

    # Get Buildroot.
    if not os.path.exists("buildroot"):
        os.system("git clone http://github.com/buildroot/buildroot")
    os.chdir("buildroot")

    # Configure Buildroot.
    os.system("make BR2_EXTERNAL=../../buildroot/ litex_vexriscv_defconfig")

    # Build Linux Images.
    os.system("make")

    # Copy Linux Images.
    os.system("cp output/images/* ../../images/")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant