Skip to content

Commit

Permalink
Merge pull request #99 from OnionIoT/feature/port-fixes-from-22-to-23…
Browse files Browse the repository at this point in the history
…-branch

Port fixes from 22 to 23 branch
  • Loading branch information
greenbreakfast committed Jun 6, 2024
2 parents 1f9be1e + 8aea2bc commit f009a2f
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 3 deletions.
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))

0 comments on commit f009a2f

Please sign in to comment.