gluon/patches/openwrt/0004-prune-opkg.patch
Maciej Krüger f118a39df4 prune opkg
2022-08-11 11:13:45 +02:00

27 lines
874 B
Diff

From 318c93ccb99221a401c79a3d3f11374ad71e1a9a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Maciej=20Kr=C3=BCger?= <mkg20001@gmail.com>
Date: Fri, 10 Jun 2022 20:21:02 +0200
Subject: [PATCH] prune opkg
---
include/image.mk | 3 +++
1 file changed, 3 insertions(+)
diff --git a/include/image.mk b/include/image.mk
index 1703c39797..83db6a84ad 100644
--- a/include/image.mk
+++ b/include/image.mk
@@ -330,6 +330,9 @@ target-dir-%: FORCE
-$(CP) -T $(mkfs_cur_target_dir).opkg/ $(mkfs_cur_target_dir)/etc/opkg/
rm -rf $(mkfs_cur_target_dir).opkg $(mkfs_cur_target_dir).conf
$(call prepare_rootfs,$(mkfs_cur_target_dir),$(TOPDIR)/files)
+ rm -rf $(mkfs_cur_target_dir)/usr/lib/opkg
+ rm -rf $(mkfs_cur_target_dir)/bin/opkg
+ rm -rf $(mkfs_cur_target_dir)/etc/opkg
$(KDIR)/root.%: kernel_prepare
$(call Image/mkfs/$(word 1,$(target_params)),$(target_params))
--
2.36.1