{ "info": { "author": "Olivier Martin", "author_email": "olivier@labapart.com", "bugtrack_url": null, "classifiers": [], "description": "# `cross-sysroot` [![Build Status](https://travis-ci.org/labapart/cross_sysroot.svg?branch=master)](https://travis-ci.org/labapart/cross_sysroot)\n\n`cross-sysroot` is a utility to generate `sysroot` for cross-compilation.\n\nThe tool expects the name of the targeted Linux distribution, its version, the targeted architecture and a file containing the list of the main required packages. \nThe tool will solve package dependencies and extract them into a given `sysroot` path.\n\nThe generated `sysroot` can be used as an argument for the toolchain command line argument `--sysroot=`\n\n* To install the utility: `pip3 install cross-sysroot`\n\n* Command usage:\n\n```\nusage: cross-sysroot [-h] [--verbose] --distribution {debian,ubuntu,raspbian}\n --distribution-version DISTRIBUTION_VERSION\n [--distribution-url DISTRIBUTION_URL] --architecture\n {amd64,arm64,armhf,armel} --build-root BUILD_ROOT\n package_list_file\n\nBuild package list for Linux Distribution.\n\npositional arguments:\n package_list_file File containing the list of packages (and their\n versions)\n\noptional arguments:\n -h, --help show this help message and exit\n --verbose Verbose mode\n --distribution {debian,ubuntu, raspbian}\n Linux distribution\n --distribution-version DISTRIBUTION_VERSION\n Linux distribution\n --distribution-url DISTRIBUTION_URL\n Linux distribution URL\n --architecture {amd64,arm64,armhf,armel}\n CPU Architecture\n --build-root BUILD_ROOT\n Location to store the Linux Distribution package.\n --cross-gcc CROSS_GCC\n GCC Path used to build the cross application. When\n set, all GCC sysroot files are copied into the\n sysroot.\n```\n\n* Example 1:\n\n```\ncross-sysroot --distribution debian --distribution-version stable --architecture arm64 --build-root /tmp/cross-sysroot tests/requirements-debian-jessie-arm64.txt\n```\n\n* Example 2: Considering `CROSS_COMPILE` environment variable points to your cross-compilation toolchain:\n\n```\ncross-sysroot --distribution debian --distribution-version stable --architecture arm64 --build-root /tmp/cross-sysroot --cross-gcc ${CROSS_COMPILE}gcc tests/requirements-debian-jessie-arm64.txt\n```\n\nNotes about Development/CI\n==========================\n\n* Launch the python application from source tree: `PYTHONPATH=$PWD python3 -m cross_sysroot.cross_sysroot --help`\n\n* Generate a new PIP package\n\n* Run Python linter on the code:\n\n sudo apt-get install pylint3\n pylint3 cross_sysroot\n\n* Run test in the source tree: `PYTHONPATH=$PWD pytest`\n\nDevelopment Information\n=======================\n\nFormat of the Debian-based distribution repository\n--------------------------------------------------\n\nLocation of `Packages.gz`:\n- http://gb.archive.ubuntu.com/ubuntu/dists/trusty/main/binary-amd64/Packages.gz\n- http://ftp.uk.debian.org/debian/dists/jessie/main/binary-amd64/Packages.gz\n\nContent of `Packages.gz`:\n\n```\n(...)\nPackage: automake1.9\nPriority: optional\nSection: devel\nInstalled-Size: 1137\nMaintainer: Ubuntu Developers \nOriginal-Maintainer: Eric Dorland \nArchitecture: all\nVersion: 1.9.6+nogfdl-4ubuntu1\nProvides: automaken\nDepends: autoconf (>= 2.58), autotools-dev (>= 20020320.1)\nSuggests: automake1.9-doc\nConflicts: automake (<< 1:1.4-p5-1), automake1.5 (<< 1.5-2), automake1.6 (<< 1.6.1-4)\nFilename: pool/main/a/automake1.9/automake1.9_1.9.6+nogfdl-4ubuntu1_all.deb\nSize: 338192\nMD5sum: 5bc0b73852c50927a98ac4150cf2c585\nSHA1: 8dbab4e448dd095f7ab9dc6defe308823cd1b16a\nSHA256: 75358908ffe09e115d3971273c967306dd931b94edd846dbd6a762448e40cb56\nDescription: A tool for generating GNU Standards-compliant Makefiles\nDescription-md5: 16f7c6a70ae85327f4522569aa2e0cc9\nBugs: https://bugs.launchpad.net/ubuntu/+filebug\nOrigin: Ubuntu\nSupported: 9m\n\nPackage: automoc\nPriority: extra\nSection: devel\nInstalled-Size: 122\nMaintainer: Ubuntu Developers \nOriginal-Maintainer: Debian Qt/KDE Maintainers \nArchitecture: amd64\nVersion: 1.0~version-0.9.88-5build1\nDepends: libc6 (>= 2.2.5), libgcc1 (>= 1:4.1.1), libqtcore4 (>= 4:4.8.0), libstdc++6 (>= 4.1.1), libqt4-dev\nFilename: pool/main/a/automoc/automoc_1.0~version-0.9.88-5build1_amd64.deb\nSize: 32888\n(...)\n```", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/labapart/cross_sysroot", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "cross-sysroot", "package_url": "https://pypi.org/project/cross-sysroot/", "platform": "", "project_url": "https://pypi.org/project/cross-sysroot/", "project_urls": { "Homepage": "https://github.com/labapart/cross_sysroot" }, "release_url": "https://pypi.org/project/cross-sysroot/0.2/", "requires_dist": null, "requires_python": "", "summary": "Utility to generate a sysroot tree from a Linux distribution", "version": "0.2" }, "last_serial": 5505593, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "9a75952c4aca49c6492cff245885b9aa", "sha256": "cf3d1dce1a03130d8e4670fddefea942eb581484498ebda69a212d8376284fd3" }, "downloads": -1, "filename": "cross-sysroot-0.1.tar.gz", "has_sig": false, "md5_digest": "9a75952c4aca49c6492cff245885b9aa", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6105, "upload_time": "2019-05-17T22:56:02", "url": "https://files.pythonhosted.org/packages/f9/a4/9ac554ef6cc6c9c2598d514df1b1d940f12c86da5e2be2c6a2e041bf6b5b/cross-sysroot-0.1.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "d2073e39162778bfd3e4dbdd454f7d1c", "sha256": "a706b9221d87e9f5806e49b050f7e77c02cda5f1589e0b559e6961724d1c875d" }, "downloads": -1, "filename": "cross-sysroot-0.1.1.tar.gz", "has_sig": false, "md5_digest": "d2073e39162778bfd3e4dbdd454f7d1c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6187, "upload_time": "2019-05-17T23:26:43", "url": "https://files.pythonhosted.org/packages/e2/0a/a0d766016f770d917a40afc7bfe5343bb87a2b70c53a62f913275df783e5/cross-sysroot-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "d1eb880caae34c2ecc709a10923dc2a0", "sha256": "37edacbe6d206423aeadadb3f1dc8d343f64cbd94d7ff568fff4b78cf12b0c1b" }, "downloads": -1, "filename": "cross-sysroot-0.1.2.tar.gz", "has_sig": false, "md5_digest": "d1eb880caae34c2ecc709a10923dc2a0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6203, "upload_time": "2019-05-18T09:09:17", "url": "https://files.pythonhosted.org/packages/24/1f/ec8fe1db30ccd55f69e193838a39edaa7edd06623372e841b3b0e736c200/cross-sysroot-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "72cafa2233eb2bc17efaf4ec9cde4f89", "sha256": "b1733aba01b21b783d49ec25bb97463b222385c570104c7f0dd4e0b1b4097761" }, "downloads": -1, "filename": "cross-sysroot-0.1.3.tar.gz", "has_sig": false, "md5_digest": "72cafa2233eb2bc17efaf4ec9cde4f89", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6088, "upload_time": "2019-05-18T15:00:59", "url": "https://files.pythonhosted.org/packages/1b/43/4e12ccab80fb578b2f9884c79df08fa717762c3df0bdfbbcfc8eeed84e67/cross-sysroot-0.1.3.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "2eb36b769231771435ba9e7aeae962ca", "sha256": "e298f741540bb09da4e45d552a1395a84aa8e1fbbe0a3bd8465a665ca8892475" }, "downloads": -1, "filename": "cross-sysroot-0.2.tar.gz", "has_sig": false, "md5_digest": "2eb36b769231771435ba9e7aeae962ca", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7283, "upload_time": "2019-07-09T08:36:34", "url": "https://files.pythonhosted.org/packages/ce/88/df1893ebf67299558ea318c1ffb0396c8d47ddebc97e5fcfc6c89e9f674c/cross-sysroot-0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "2eb36b769231771435ba9e7aeae962ca", "sha256": "e298f741540bb09da4e45d552a1395a84aa8e1fbbe0a3bd8465a665ca8892475" }, "downloads": -1, "filename": "cross-sysroot-0.2.tar.gz", "has_sig": false, "md5_digest": "2eb36b769231771435ba9e7aeae962ca", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7283, "upload_time": "2019-07-09T08:36:34", "url": "https://files.pythonhosted.org/packages/ce/88/df1893ebf67299558ea318c1ffb0396c8d47ddebc97e5fcfc6c89e9f674c/cross-sysroot-0.2.tar.gz" } ] }