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

Port fixes from 22 to 23 branch #99

Merged
merged 12 commits into from
Jun 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,20 @@

Onion Packages for OpenWRT firmware. Intended for the Onion Omega2 & Omega2+ devices

- [OpenWRT-Packages](#openwrt-packages)
* [Where can I find the compiled output of this repo?](#where-can-i-find-the-compiled-output-of-this-repo)
- [Developing with this Repo](#developing-with-this-repo)
* [How Can I Compile the Packages in this Repo for the Omega2 Device?](#how-can-i-compile-the-packages-in-this-repo-for-the-omega2-device)
+ [Compiling the Packages as they are in this repo](#compiling-the-packages-as-they-are-in-this-repo)
+ [Compiling the Packages from a local clone of this repo](#compiling-the-packages-from-a-local-clone-of-this-repo)
* [How Can I Build Firmware that includes the packages from this repo?](#how-can-i-build-firmware-that-includes-the-packages-from-this-repo)
+ [Building Firmware with Published Packages](#building-firmware-with-published-packages)
+ [Building Firmware with the Packages from a local clone of this repo](#building-firmware-with-the-packages-from-a-local-clone-of-this-repo)
- [Continuous Deployment Details](#continuous-deployment-details)
* [Development Builds in Branches](#development-builds-in-branches)
* [Newly Created Releases](#newly-created-releases)
* [Process: Creating a Release](#process-creating-a-release)

![Omega2+ and Omega2S+](https://github.com/OnionIoT/source/raw/openwrt-18.06/omega2-family.png)

## Where can I find the compiled output of this repo?
Expand Down
11 changes: 8 additions & 3 deletions onion-dt-overlay/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ include $(INCLUDE_DIR)/kernel.mk

PKG_NAME:=onion-dt-overlay
PKG_VERSION:=1.0
PKG_RELEASE:=3
PKG_RELEASE:=5
KERNEL_BUILD_DIR ?= $(BUILD_DIR)/linux-$(BOARD)$(if $(SUBTARGET),_$(SUBTARGET))
LINUX_DIR ?= $(KERNEL_BUILD_DIR)/linux-$(LINUX_VERSION)
DTC=$(LINUX_DIR)/scripts/dtc/dtc
Expand Down Expand Up @@ -68,7 +68,12 @@ define BuildDtbo
define Package/onion-dt-overlay-$(1)/postinst
#!/bin/sh

if [ -z "$${IPKG_INSTROOT}" ]; then
if [ -z "$$$${IPKG_INSTROOT}" ]; then
if ! cat /proc/mounts | grep -q config; then
echo "Mounting configfs..."
mount -t configfs none /sys/kernel/config
fi

mkdir -p /sys/kernel/config/device-tree/overlays/$(1)
cat /lib/firmware/device-tree/overlays/$(1).dtbo > /sys/kernel/config/device-tree/overlays/$(1)/dtbo
fi
Expand All @@ -79,5 +84,5 @@ define BuildDtbo
endef

$(eval $(call BuildPackage,onion-dt-overlay))
$(eval $(call BuildDtbo,sw-spi,,Provides SW SPI))
$(eval $(call BuildDtbo,sw-spi,+kmod-mmc-spi +kmod-spi-bitbang +kmod-spi-dev +kmod-spi-gpio,Provides SW SPI))
$(eval $(call BuildDtbo,w1-gpio,+kmod-w1 +kmod-w1-master-gpio +kmod-w1-slave-therm,Provides One Wire GPIO))