Go to file
Orne Brocaar f489e019ac rust: compile host package per target
While the compiled binaries are intended to run on the host system, the
rust/host package does include the target matching the configured
OpenWrt target.

If using (for example) ./scripts/env to switch between different
OpenWrt configurations, this will cause issues if the different
configuration is for a different target. In such case there will be a
mismatch between the available Rust target and OpenWrt target and the
following error will be printed:

> error[E0463]: can't find crate for `core`
> note: the `XXX` target may not be installed

This fix will add the RUSTC_TARGET_ARCH as HOST_BUILD_DIR and CARGO_HOME
suffix, such that rust/host will be compiled in case an OpenWrt
configuration change causes the RUSTC_TARGET_ARCH to change.

Fixes: #21530

Signed-off-by: Orne Brocaar <info@brocaar.com>
[Applied Jeffery To's suggestion for build and install path]
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-07-18 04:49:50 +08:00
.circleci CircleCI: Add 22.03 public keys, 18.06 v2 gpg key, 18.06 usign key 2022-05-11 16:40:55 +08:00
.github CI: update build architectures 2023-06-16 12:30:32 +08:00
.keys build: move gpg keys into .keys directory 2018-04-30 13:14:25 -07:00
admin sudo: bump to verison 1.9.14p1 2023-07-16 00:22:08 +03:00
devel gitlab-runner: Update to 16.0.2 2023-06-22 21:38:36 +03:00
fonts/dejavu-fonts-ttf [dejavu-fonts] add license info and myself as maintainer 2017-02-22 18:39:54 +01:00
ipv6 treewide: remove AUTORELEASE 2023-04-21 22:46:58 +02:00
kernel treewide: remove AUTORELEASE 2023-04-21 22:46:58 +02:00
lang rust: compile host package per target 2023-07-18 04:49:50 +08:00
libs libwebp: bump to version 1.3.1 2023-07-16 00:40:08 +03:00
mail alpine: disable parallel build 2023-06-19 16:05:00 +03:00
multimedia treewide: make all GNOME URLs consistent 2023-07-11 08:37:37 -07:00
net Merge pull request #21577 from commodo/tcpreplay 2023-07-16 21:03:33 +03:00
sound shairport-sync: fix init script 2023-07-13 16:18:44 -07:00
utils jq: remove _GNU_SOURCE from Makefile and instead backport patch 2023-07-17 11:44:01 -07:00
CONTRIBUTING.md CONTRIBUTING: add CI information 2020-09-30 10:47:12 -10:00
LICENSE Add GPLv2 pro-forma license 2014-06-16 08:14:04 +02:00
README.md Update the SDK URL in the README. 2020-05-24 14:50:30 -07:00

README.md

OpenWrt packages feed

Description

This is the OpenWrt "packages"-feed containing community-maintained build scripts, options and patches for applications, modules and libraries used within OpenWrt.

Installation of pre-built packages is handled directly by the opkg utility within your running OpenWrt system or by using the OpenWrt SDK on a build system.

Usage

This repository is intended to be layered on-top of an OpenWrt buildroot. If you do not have an OpenWrt buildroot installed, see the documentation at: OpenWrt Buildroot Installation on the OpenWrt support site.

This feed is enabled by default. To install all its package definitions, run:

./scripts/feeds update packages
./scripts/feeds install -a -p packages

License

See LICENSE file.

Package Guidelines

See CONTRIBUTING.md file.