This is useful for keeping specific data on a device across factory reset. It uses a separate partition (only UBI supported at the moment) to store the data. The primary use case is storing sensitive data like cryptographic keys for maintaining a device as part of a network. Signed-off-by: Felix Fietkau <nbd@nbd.name>
34 lines
640 B
Makefile
34 lines
640 B
Makefile
#
|
|
# Copyright (C) 2025 OpenWrt.org
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=provision
|
|
PKG_RELEASE:=$(AUTORELEASE)
|
|
|
|
PKG_LICENSE:=GPL-2.0
|
|
PKG_MAINTAINER:=Felix Fietkau <nbd@nbd.name>
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/provision
|
|
SECTION:=utils
|
|
CATEGORY:=Utilities
|
|
TITLE:=Utility for managing device provisioning data
|
|
DEPENDS:=+ucode +ucode-mod-fs +ucode-mod-struct
|
|
endef
|
|
|
|
define Build/Compile
|
|
:
|
|
endef
|
|
|
|
define Package/provision/install
|
|
$(CP) ./files/* $(1)/
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,provision))
|