diff --git a/meta-oniro-core/conf/distro/include/oniro.inc b/meta-oniro-core/conf/distro/include/oniro.inc
index 2ee631af6625d6a4135bbb82157dd5e66bace63a..e67d9f3ceed7bb2ab959359a8688433296c2ee79 100644
--- a/meta-oniro-core/conf/distro/include/oniro.inc
+++ b/meta-oniro-core/conf/distro/include/oniro.inc
@@ -10,3 +10,13 @@ INHERIT += "oniro-sanity"
 # mask out the blueprint layers in the main distro and unmask
 # them only the blueprint distributions.
 BBMASK += "meta-ohos/meta-ohos-blueprints/"
+
+# This is the ugliest fix possible but it fixes the build while keeping
+# meta-freertos around. meta-freertos is pulling in a dependency on
+# meta-poky-bsp without a reason that we can put a finger on and given that we
+# have moved to oe-core/bitbake, bringing back poky just for this, makes little
+# sense. We will follow up with upstream and do either of the following:
+# * fix this properly upstream
+# * drop freertos support
+# * bring back poky once we clarify this dependency with the maintainer
+LAYERDEPENDS_meta-freertos_remove = "yoctobsp"