[Add meta-cmf-filogic sdk cmf for rdkb development]
[Description]
Add meta-cmf-filogic sdk cmf for rdkb development
1. rdkb base on dunfell rdkb-next (> 2022q1)
2. cmf is mostly from meta-turris implementation
3. some 64bit support are port from rp4-64 cmf
4. arm64/arm 32bit bsp both can run on rdkb
[Release-log]
N/A
diff --git a/recipes-core/images/rdk-generic-broadband-image.bbappend b/recipes-core/images/rdk-generic-broadband-image.bbappend
new file mode 100644
index 0000000..7b98407
--- /dev/null
+++ b/recipes-core/images/rdk-generic-broadband-image.bbappend
@@ -0,0 +1,60 @@
+inherit rdk-image
+
+IMAGE_FEATURES_remove = "read-only-rootfs"
+
+SYSTEMD_TOOLS = "systemd-analyze systemd-bootchart"
+# systemd-bootchart doesn't currently build with musl libc
+SYSTEMD_TOOLS_remove_libc-musl = "systemd-bootchart"
+
+IMAGE_INSTALL += " packagegroup-turris-core \
+ ${SYSTEMD_TOOLS} \
+ linux-mac80211 \
+ kernel-module-compat \
+ kernel-module-cfg80211 \
+ kernel-module-mac80211 \
+ linux-mt76 \
+ kernel-module-mt76 \
+ kernel-module-mt7915e \
+ linux-firmware-mt76 \
+ network-hotplug \
+ libmcrypt \
+ bzip2 \
+ libpcap \
+ tcpdump \
+ ebtables \
+ iw \
+ ethtool \
+ bc \
+ mesh-agent \
+ openvswitch \
+ opensync \
+ "
+
+BB_HASH_IGNORE_MISMATCH = "1"
+IMAGE_NAME[vardepsexclude] = "DATETIME"
+
+#ESDK-CHANGES
+do_populate_sdk_ext_prepend() {
+ builddir = d.getVar('TOPDIR')
+ if os.path.exists(builddir + '/conf/templateconf.cfg'):
+ with open(builddir + '/conf/templateconf.cfg', 'w') as f:
+ f.write('meta/conf\n')
+}
+
+sdk_ext_postinst_append() {
+ echo "ln -s $target_sdk_dir/layers/openembedded-core/meta-rdk $target_sdk_dir/layers/openembedded-core/../meta-rdk \n" >> $env_setup_script
+}
+
+PRSERV_HOST = "localhost:0"
+INHERIT += "buildhistory"
+BUILDHISTORY_COMMIT = "1"
+
+
+
+require image-exclude-files.inc
+
+remove_unused_file() {
+ for i in ${REMOVED_FILE_LIST} ; do rm -rf ${IMAGE_ROOTFS}/$i ; done
+}
+
+ROOTFS_POSTPROCESS_COMMAND_append = "remove_unused_file; "