From 645f0c9a00c30ea4b0b912667e3582f4fe8f0b9c Mon Sep 17 00:00:00 2001 From: William Petit Date: Mon, 31 Jul 2023 13:25:28 -0600 Subject: [PATCH] feat: add basic bananapi r3 target --- Makefile | 4 ++-- targets/bananapi.mk | 11 +++++++++++ 2 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 targets/bananapi.mk diff --git a/Makefile b/Makefile index 500ce85..41c22d3 100644 --- a/Makefile +++ b/Makefile @@ -15,8 +15,8 @@ BIN_DIR_NAME_SUFFIX ?= IMAGEBUILDER_URL ?= https://downloads.openwrt.org/releases/$(OPENWRT_VERSION)/targets/$(OPENWRT_TARGET)/openwrt-imagebuilder-$(OPENWRT_VERSION)-$(OPENWRT_TARGET_DASHED).Linux-x86_64.tar.xz -IMAGEBUILDER_ARCHIVE_PATH := tmp/imagebuilder-$(OPENWRT_VERSION)-$(OPENWRT_TARGET_DASHED).tar.xz -IMAGEBUILDER_DIR_PATH := $(PWD)/imagebuilder/$(OPENWRT_VERSION)/$(OPENWRT_TARGET) +IMAGEBUILDER_ARCHIVE_PATH ?= tmp/imagebuilder-$(OPENWRT_VERSION)-$(OPENWRT_TARGET_DASHED).tar.xz +IMAGEBUILDER_DIR_PATH ?= $(PWD)/imagebuilder/$(OPENWRT_VERSION)/$(OPENWRT_TARGET) IMAGEBUILDER_CUSTOM_PACKAGES_DIR_PATH := $(IMAGEBUILDER_DIR_PATH)/packages IMAGEBUILDER_CUSTOM_FILES_DIR_PATH := $(IMAGEBUILDER_DIR_PATH)/files diff --git a/targets/bananapi.mk b/targets/bananapi.mk new file mode 100644 index 0000000..611d799 --- /dev/null +++ b/targets/bananapi.mk @@ -0,0 +1,11 @@ +all: bpi-r3 + +bpi-r3: + $(MAKE) \ + OPENWRT_VERSION="snapshot" \ + IMAGEBUILDER_URL=https://downloads.openwrt.org/snapshots/targets/mediatek/filogic/openwrt-imagebuilder-mediatek-filogic.Linux-x86_64.tar.xz \ + ADDITIONAL_INSTALL="" \ + OPENWRT_TARGET="mediatek/filogic" \ + EMISSARY_ARCH="arm64" \ + OPENWRT_PROFILE="bananapi_bpi-r3" \ + build \ No newline at end of file