Skip to content
Snippets Groups Projects
Verified Commit 8f21c7ed authored by Josef Schlehofer's avatar Josef Schlehofer
Browse files

patches/openwrt: Turris 1.x: improve patch

parent 6bb14aa8
Branches
Tags
2 merge requests!569Turris OS 6.0 (HBK),!540Kernel 5.15
CONFIG_TARGET_mpc85xx=y
CONFIG_TARGET_mpc85xx_p2020=y
CONFIG_TARGET_mpc85xx_p2020_DEVICE_turris1x=y
CONFIG_TARGET_mpc85xx_p2020_DEVICE_cznic_turris1x=y
CONFIG_SOFT_FLOAT=y
......@@ -15,7 +15,7 @@ index 1e2c35178c..467d0c9b86 100644
mv $(PKG_BUILD_DIR)/tools/env/fw_printenv $(PKG_BUILD_DIR)
sed -i 's|^\(CONFIG_RSA.*\)=y|# \1 is not set|' $(PKG_BUILD_DIR)/.config
sed -i 's|^\(CONFIG_FIT\)=y|# \1 is not set|' $(PKG_BUILD_DIR)/.config
+ifeq ($(CONFIG_TARGET_mpc85xx_p2020_DEVICE_turris1x),y)
+ifeq ($(CONFIG_TARGET_mpc85xx_p2020_DEVICE_cznic_turris1x),y)
+ sed -i 's|^\(CONFIG_EFI_LOADER=y\)|CONFIG_EFI_LOADER=n|' $(PKG_BUILD_DIR)/.config
+endif
$(MAKE) -C $(PKG_BUILD_DIR) \
......
......@@ -29,14 +29,14 @@ diff --git a/target/linux/mpc85xx/image/p2020.mk b/target/linux/mpc85xx/image/p2
index e6ef38ff18..e5db995101 100644
--- a/target/linux/mpc85xx/image/p2020.mk
+++ b/target/linux/mpc85xx/image/p2020.mk
@@ -19,6 +19,7 @@ define Device/turris1x
DEVICE_MODEL := 1.x
@@ -19,6 +19,7 @@ define Device/cznic_turris1x
DEVICE_MODEL := Turris 1.x
DEVICE_PACKAGES := \
kmod-hwmon-core kmod-hwmon-lm90 kmod-usb3 kmod-rtc-ds1307
kmod-hwmon-core kmod-hwmon-lm90 kmod-usb3 kmod-rtc-ds1307 kmod-crypto-hw-talitos
+ KERNELNAME := uImage
KERNEL = kernel-bin
endef
TARGET_DEVICES += turris1x
TARGET_DEVICES += cznic_turris1x
--
2.32.0
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment