{"id":47795018,"url":"https://github.com/eclipse-score/rules_imagefs","last_synced_at":"2026-04-03T16:13:52.061Z","repository":{"id":339224572,"uuid":"1149686087","full_name":"eclipse-score/rules_imagefs","owner":"eclipse-score","description":"Repository for Image FileSystem Bazel rules and toolchains definitions","archived":false,"fork":false,"pushed_at":"2026-03-27T15:14:29.000Z","size":51,"stargazers_count":0,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-03-28T00:45:00.832Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Starlark","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eclipse-score.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-02-04T11:59:18.000Z","updated_at":"2026-03-27T15:09:30.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/eclipse-score/rules_imagefs","commit_stats":null,"previous_names":["eclipse-score/rules_imagefs"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/eclipse-score/rules_imagefs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eclipse-score%2Frules_imagefs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eclipse-score%2Frules_imagefs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eclipse-score%2Frules_imagefs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eclipse-score%2Frules_imagefs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eclipse-score","download_url":"https://codeload.github.com/eclipse-score/rules_imagefs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eclipse-score%2Frules_imagefs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31362716,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-03T15:19:21.178Z","status":"ssl_error","status_checked_at":"2026-04-03T15:19:20.670Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-04-03T16:13:51.542Z","updated_at":"2026-04-03T16:13:52.049Z","avatar_url":"https://github.com/eclipse-score.png","language":"Starlark","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rules_imagefs\n\nBazel rules and toolchain setup for generating QNX image and filesystem artifacts.\n\nThis repository provides Starlark rules for building several QNX image types:\n\n- `qnx_ifs` for QNX IFS images\n- `qnx6fs` for QNX6 filesystem images\n- `fatfs` for FAT filesystem images\n- `diskimage` for composite disk images\n\nIt also provides a Bazel module extension for registering the corresponding QNX toolchains from an SDP archive.\n\n## Repository layout\n\n```text\nrules_imagefs/\n├── extensions/\n│   └── imagefs.bzl\n├── rules/qnx/\n│   ├── diskimage.bzl\n│   ├── fatfs.bzl\n│   ├── ifs.bzl\n│   ├── imagefs_toolchain.bzl\n│   └── qnx6fs.bzl\n├── templates/qnx/\n├── toolchains/qnx/\n│   └── toolchains.bzl\n├── MODULE.bazel\n└── README.md\n```\n\n## Features\n\n### `qnx_ifs`\nBuilds a QNX Image Filesystem image using the QNX IFS toolchain.\n\nThe rule accepts a main build file and optional supporting inputs. It also supports `search_roots`, which are passed as `-r` arguments to the underlying tool.\n\n### `qnx6fs`\nBuilds a QNX6 filesystem image from the provided build file and inputs.\n\n### `fatfs`\nBuilds a FAT filesystem image using the QNX `mkfatfsimg` flow.\n\n### `diskimage`\nBuilds a composite disk image from a main disk layout build file. The rule supports a `gpt_enabled` boolean attribute that passes `-g` to the underlying QNX `diskimage` tool.\n\n## Module usage\n\nAdd the dependency in your `MODULE.bazel` (replace the version string with the release you want to use):\n\n```starlark\nbazel_dep(name = \"score_rules_imagefs\", version = \"\u003crelease version\u003e\")  # e.g., \"0.0.2\"\n```\n\nThen import the module extension:\n\n```starlark\nimagefs = use_extension(\"@score_rules_imagefs//extensions:imagefs.bzl\", \"imagefs\")\n```\n\n## Toolchain configuration\n\nThe module extension defines two tag classes:\n\n- `sdp`: declares the QNX SDP archive to fetch\n- `toolchain`: declares an image-generation toolchain instance\n\n### `sdp` tag\n\nUse `sdp` to describe the archive that contains the QNX host/target toolchain payload.\n\n```starlark\nimagefs.sdp(\n    name = \"qnx_sdp_pkg\",\n    url = \"https://example.invalid/qnx-sdp.tar.gz\",\n    sha256 = \"\u003csha256\u003e\",\n    strip_prefix = \"\u003carchive-root\u003e\",\n    build_file = \"//toolchains:qnx_sdp.BUILD\",\n)\n```\n\n### `toolchain` tag\n\nUse `toolchain` to define a concrete toolchain instance for one image type.\n\n```starlark\nimagefs.toolchain(\n    name = \"qnx_ifs_toolchain_linux_x86_64\",\n    target_cpu = \"x86_64\",\n    target_os = \"qnx\",\n    sdp_version = \"8.0.0\",\n    type = \"ifs\",\n)\n```\nSince the tooling for creating image filesystems sometimes comes bundled with the C/C++ toolchain binaries, the `toolchain` tag also supports reusing an already defined SDP (for example, when the C/C++ build uses the same SDP). To include an already defined SDP in the project, use the dedicated `sdp_to_import` field:\n\n```starlark\nimagefs.toolchain(\n    name = \"qnx_ifs_toolchain_linux_x86_64\",\n    target_cpu = \"x86_64\",\n    sdp_to_import = \"@my_sdp\",\n    target_os = \"qnx\",\n    sdp_version = \"8.0.0\",\n    type = \"ifs\",\n)\n```\n\nSupported `type` values:\n- `ifs`\n- `qnx6fs`\n- `fatfs`\n- `diskimage`\n\n## Rule loading\n\n```starlark\nload(\"@score_rules_imagefs//rules/qnx:ifs.bzl\", \"qnx_ifs\")\nload(\"@score_rules_imagefs//rules/qnx:qnx6fs.bzl\", \"qnx6fs\")\nload(\"@score_rules_imagefs//rules/qnx:fatfs.bzl\", \"fatfs\")\nload(\"@score_rules_imagefs//rules/qnx:diskimage.bzl\", \"diskimage\")\n```\n\n## Basic rule examples\n\n### QNX IFS\n\n```starlark\nqnx_ifs(\n    name = \"system_ifs\",\n    build_file = \":image.build\",\n    srcs = [\n        \":files\",\n    ],\n    search_roots = [\n        \"rootfs\",\n    ],\n)\n```\n\n### QNX6 filesystem\n\n```starlark\nqnx6fs(\n    name = \"system_qnx6fs\",\n    build_file = \":fs.build\",\n    srcs = [\n        \":rootfs_files\",\n    ],\n)\n```\n\n### FAT filesystem\n\n```starlark\nfatfs(\n    name = \"boot_fatfs\",\n    build_file = \":fat.build\",\n    srcs = [\n        \":boot_files\",\n    ],\n)\n```\n\n### Disk image\n\n```starlark\ndiskimage(\n    name = \"target_disk\",\n    build_file = \":disk.build\",\n    srcs = [\n        \":partition_boot\",\n        \":partition_rootfs\",\n    ],\n    gpt_enabled = True,\n)\n```\n\n## Environment and licensing\n\nThe QNX image toolchain config sets up runtime environment variables for the underlying tools, including:\n\n- `QNX_HOST`\n- `QNX_TARGET`\n- `PATH`\n\n## Development\n\n- `//:format.fix`\n- `//:format.check`\n- `//:copyright`\n\n## License\n\nApache License 2.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feclipse-score%2Frules_imagefs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feclipse-score%2Frules_imagefs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feclipse-score%2Frules_imagefs/lists"}