Skip to content

Commit

Permalink
patches/openwrt: reorganize ath79-tiny size-reduction
Browse files Browse the repository at this point in the history
  • Loading branch information
SvenRoederer committed Oct 25, 2020
1 parent 024320d commit 9f742e9
Show file tree
Hide file tree
Showing 9 changed files with 37 additions and 119 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Date: Sat, 26 Sep 2020 19:17:01 +0200
Subject: kernel: deactivate usb on ath79-tiny

diff --git a/target/linux/ath79/image/tiny-tp-link.mk b/target/linux/ath79/image/tiny-tp-link.mk
index c918c6baa682e78b2b1c204fb9a55dc0a5aef1e7..8b71d46194faadbcaba0e9bc52443caeac10ec49 100644
index d5b36de577aadecdeec599ae708acc6a52b678b4..ab931f02fb52c16259da5e7561e7d5beb1ee8b18 100644
--- a/target/linux/ath79/image/tiny-tp-link.mk
+++ b/target/linux/ath79/image/tiny-tp-link.mk
@@ -16,7 +16,6 @@ define Device/tplink_tl-mr3020-v1
Expand All @@ -30,7 +30,7 @@ index c918c6baa682e78b2b1c204fb9a55dc0a5aef1e7..8b71d46194faadbcaba0e9bc52443cae
SUPPORTED_DEVICES += tl-mr3220
endef
TARGET_DEVICES += tplink_tl-mr3220-v1
@@ -227,7 +224,6 @@ define Device/tplink_tl-wr703n
@@ -238,7 +235,6 @@ define Device/tplink_tl-wr703n
$(Device/tplink-4mlzma)
SOC := ar9331
DEVICE_MODEL := TL-WR703N
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,26 @@
From: adminuser <[email protected]>
Date: Sun, 27 Sep 2020 01:29:38 +0200
Subject: kernel: ath79-tiny deactivate more features
Subject: kernel: ath79-tiny deactivate usually not needed features

not needed for tiny hardware
this includes:
* CONFIG_AIO
* CONFIG_HAVE_IDE
* CONFIG_NVMEM
* CONFIG_DEBUG_FS
* CONFIG_DEBUG_KERNEL
* CONFIG_HAVE_DEBUG_KMEMLEAK
* CONFIG_HAVE_DEBUG_STACKOVERFLOW
* CONFIG_ISDN
* CONFIG_SND_DRIVERS
* CONFIG_STAGING
* CONFIG_HAVE_KVM
* CONFIG_VIRTIO_MENU

diff --git a/target/linux/ath79/tiny/config-default b/target/linux/ath79/tiny/config-default
index c42f44b004bf3b3626fc7634b6b5df4d1547275b..0c197958660bd1a96cae6c4c27d7f97f634acb5b 100644
index c42f44b004bf3b3626fc7634b6b5df4d1547275b..5dcdf30af4720d324cc2bb6bbdaa888bdebb60d5 100644
--- a/target/linux/ath79/tiny/config-default
+++ b/target/linux/ath79/tiny/config-default
@@ -13,3 +13,17 @@ CONFIG_PHYLINK=y
@@ -13,3 +13,16 @@ CONFIG_PHYLINK=y
CONFIG_REGULATOR=y
CONFIG_REGULATOR_FIXED_VOLTAGE=y
# CONFIG_USB_SUPPORT is not set
Expand All @@ -18,7 +30,6 @@ index c42f44b004bf3b3626fc7634b6b5df4d1547275b..0c197958660bd1a96cae6c4c27d7f97f
+# CONFIG_HAVE_KVM is not set
+# CONFIG_NVMEM is not set
+# CONFIG_AIO is not set
+# CONFIG_BLK_DEV is not set
+# CONFIG_DEBUG_FS is not set
+# CONFIG_DEBUG_KERNEL is not set
+# CONFIG_ISDN is not set
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ Date: Sun, 27 Sep 2020 03:13:20 +0200
Subject: kernel: ath79-tine: enable CONFIG_BLOCK

diff --git a/target/linux/ath79/tiny/config-default b/target/linux/ath79/tiny/config-default
index 8897591d3165dbf10cac948a4cccdac48018e9ff..3d2e0646f42c445cfa606b51c37bc4ca7c537730 100644
index 5dcdf30af4720d324cc2bb6bbdaa888bdebb60d5..f686d284f67389ad361cb36c72b6f4923ef95493 100644
--- a/target/linux/ath79/tiny/config-default
+++ b/target/linux/ath79/tiny/config-default
@@ -15,6 +15,7 @@ CONFIG_REGULATOR_FIXED_VOLTAGE=y
# CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE is not set
CONFIG_CC_OPTIMIZE_FOR_SIZE=y
CONFIG_LOG_BUF_SHIFT=16
@@ -16,6 +16,7 @@ CONFIG_REGULATOR_FIXED_VOLTAGE=y
# CONFIG_HAVE_DEBUG_KMEMLEAK is not set
# CONFIG_HAVE_DEBUG_STACKOVERFLOW is not set
# CONFIG_HAVE_IDE is not set
+CONFIG_BLOCK=y
# CONFIG_HAVE_KVM is not set
# CONFIG_DEBUG_FS is not set
# CONFIG_DEBUG_KERNEL is not set
# CONFIG_NVMEM is not set
# CONFIG_AIO is not set
16 changes: 0 additions & 16 deletions patches/openwrt/0014-kernel-ath79-tiny-reenable-CONFIG_BLK.patch

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,15 @@ Date: Sun, 27 Sep 2020 03:05:42 +0200
Subject: kernel: ath79-tine: optimize for size

diff --git a/target/linux/ath79/tiny/config-default b/target/linux/ath79/tiny/config-default
index dada97dccba968ca278dd66eda064c4028b0cea5..af95860ebab53076e8f627736018289b49ef9bab 100644
index f686d284f67389ad361cb36c72b6f4923ef95493..8c7ab419a416efe9a0fe9060700f0c11086ed27a 100644
--- a/target/linux/ath79/tiny/config-default
+++ b/target/linux/ath79/tiny/config-default
@@ -12,8 +12,8 @@ CONFIG_PHYLINK=y
# CONFIG_PHY_AR7200_USB is not set
CONFIG_REGULATOR=y
CONFIG_REGULATOR_FIXED_VOLTAGE=y
-# CONFIG_HAVE_DEBUG_KMEMLEAK is not set
-# CONFIG_HAVE_DEBUG_STACKOVERFLOW is not set
@@ -17,6 +17,8 @@ CONFIG_REGULATOR_FIXED_VOLTAGE=y
# CONFIG_HAVE_DEBUG_STACKOVERFLOW is not set
# CONFIG_HAVE_IDE is not set
CONFIG_BLOCK=y
+# CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE is not set
+CONFIG_CC_OPTIMIZE_FOR_SIZE=y
# CONFIG_HAVE_KVM is not set
# CONFIG_DEBUG_FS is not set
# CONFIG_DEBUG_KERNEL is not set
# CONFIG_NVMEM is not set
# CONFIG_AIO is not set

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ Date: Sun, 27 Sep 2020 03:07:46 +0200
Subject: kernel log_buffer size = 64k (was 128k)

diff --git a/target/linux/ath79/tiny/config-default b/target/linux/ath79/tiny/config-default
index af95860ebab53076e8f627736018289b49ef9bab..8897591d3165dbf10cac948a4cccdac48018e9ff 100644
index 8c7ab419a416efe9a0fe9060700f0c11086ed27a..5df68913613bf8e3b59a41620c657b615bd70974 100644
--- a/target/linux/ath79/tiny/config-default
+++ b/target/linux/ath79/tiny/config-default
@@ -14,6 +14,7 @@ CONFIG_REGULATOR=y
CONFIG_REGULATOR_FIXED_VOLTAGE=y
@@ -19,6 +19,7 @@ CONFIG_REGULATOR_FIXED_VOLTAGE=y
CONFIG_BLOCK=y
# CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE is not set
CONFIG_CC_OPTIMIZE_FOR_SIZE=y
+CONFIG_LOG_BUF_SHIFT=16
# CONFIG_HAVE_KVM is not set
# CONFIG_DEBUG_FS is not set
# CONFIG_DEBUG_KERNEL is not set
# CONFIG_NVMEM is not set
# CONFIG_AIO is not set

This file was deleted.

This file was deleted.

0 comments on commit 9f742e9

Please sign in to comment.