This is an automated email from the ASF dual-hosted git repository.

xiaoxiang781216 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit 16632c7d55e39e00e1c7e54e8b0237c4f3b5b2e2
Author: dechao_gong <[email protected]>
AuthorDate: Mon Sep 21 13:37:44 2026 +0800

    boards/arm/rtl8730e: commit platform_autoconf.h for CI
    
    platform_autoconf.h is a hand-maintained minimal header that provides the
    SDK #defines required by the fwlib sources compiled during PREBUILD.  Unlike
    the other Ameba ICs (which use ameba_gen_autoconf.sh to regenerate it from
    SDK menuconfig), RTL8730E uses a static file because the amebasmart SDK
    does not ship a pre-generated autoconf and running menuconfig in CI is not
    feasible.
    
    The file was previously gitignored along with all other prebuilt/ artifacts,
    so CI had no platform_autoconf.h on a clean clone, causing:
      fatal error: platform_autoconf.h: No such file or directory
    
    Fix: add !platform_autoconf.h exception to prebuilt/.gitignore and track
    the file in git.  Local clean build verified (nuttx.bin 550 KB generated).
    
    Signed-off-by: dechao_gong <[email protected]>
    Assisted-by: Claude <[email protected]>
---
 .../arm/rtl8730e/rtl8730e_evb/prebuilt/.gitignore  |  9 ++--
 .../rtl8730e_evb/prebuilt/platform_autoconf.h      | 56 ++++++++++++++++++++++
 2 files changed, 62 insertions(+), 3 deletions(-)

diff --git a/boards/arm/rtl8730e/rtl8730e_evb/prebuilt/.gitignore 
b/boards/arm/rtl8730e/rtl8730e_evb/prebuilt/.gitignore
index 6de2bfd8818..30c72d66217 100644
--- a/boards/arm/rtl8730e/rtl8730e_evb/prebuilt/.gitignore
+++ b/boards/arm/rtl8730e/rtl8730e_evb/prebuilt/.gitignore
@@ -7,12 +7,15 @@
 #   libs/*.a / libs/wifi_obj/*.o   pre-compiled chip archives + WiFi glue
 #   bl2.bin / bl32.bin / boot.bin  prebuilt secure-boot / KM4-KM0 blobs
 #   vendor_prefix.bin              image header prepended to the AP image
-#   platform_autoconf.h            regenerated each build from the SDK
-#                                  menuconfig (single source of truth)
+#   platform_autoconf.h            static minimal header maintained in-tree
+#                                  (NOT from SDK menuconfig; only the defines
+#                                  our fwlib sources actually need)
 #   fiptool                        vendored FIP packaging tool binary
 #   *_uuid.txt                     FIP entry UUIDs for the packer
 #
-# Everything in this directory is ignored.
+# Everything in this directory is ignored, except platform_autoconf.h which
+# is a hand-maintained NuttX-side file that must be present on a clean clone.
 
 *
 !.gitignore
+!platform_autoconf.h
diff --git a/boards/arm/rtl8730e/rtl8730e_evb/prebuilt/platform_autoconf.h 
b/boards/arm/rtl8730e/rtl8730e_evb/prebuilt/platform_autoconf.h
new file mode 100644
index 00000000000..b5b61fe94f4
--- /dev/null
+++ b/boards/arm/rtl8730e/rtl8730e_evb/prebuilt/platform_autoconf.h
@@ -0,0 +1,56 @@
+/****************************************************************************
+ * boards/arm/rtl8730e/rtl8730e_evb/prebuilt/platform_autoconf.h
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.  The
+ * ASF licenses this file to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance with the
+ * License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the
+ * License for the specific language governing permissions and limitations
+ * under the License.
+ *
+ ****************************************************************************/
+
+/* Minimal platform_autoconf.h for RTL8730E CA32 NuttX build.
+ * Static file -- not auto-generated from SDK menuconfig.
+ * Only the defines required by the fwlib sources we compile are listed.
+ */
+
+#ifndef __AMEBA_PLATFORM_AUTOCONF_H__
+#define __AMEBA_PLATFORM_AUTOCONF_H__
+
+#define CONFIG_AMEBASMART              1
+#define CONFIG_ARM_CORE_CA32           1
+
+/* Flash VFS1 partition (SDK defaults for amebasmart NOR layout).
+ * XIP base is 0x08000000; offset is absolute XIP address.
+ */
+
+#define CONFIG_FLASH_VFS1_OFFSET       0x8600000
+#define CONFIG_FLASH_VFS1_SIZE         0x200000
+
+/* Disable LOGUART aggregator (causes SYNC-byte noise on CA32 console). */
+
+#undef  CONFIG_LOGUART_AGG_EN
+
+/* WiFi WHC host (CA32 = WHC HOST, KM4 = WHC DEVICE).
+ * Force-included into every WiFi SDK source compiled for CA32.
+ */
+
+#define CONFIG_WIFI_POWER_TABLE_USRCFG_3v3_1v25  1
+#define CONFIG_WHC_WIFI_API_PATH  1
+#define CONFIG_WHC_HOST           1
+#define CONFIG_WHC_INTF_IPC       1
+#define CONFIG_WLAN               1
+#define CONFIG_LWIP_LAYER         1
+
+#endif /* __AMEBA_PLATFORM_AUTOCONF_H__ */

Reply via email to