From 9e08bb2d25d0b1dab2d8b529febeda8525258c2e Mon Sep 17 00:00:00 2001 From: wangjianyu3 Date: Fri, 22 Nov 2024 20:08:48 +0800 Subject: [PATCH] esp32s3-devkit: Add initialize scripts for ROMFS/etc Signed-off-by: wangjianyu3 --- .../esp32s3/esp32s3-devkit/src/Make.defs | 3 +++ .../esp32s3-devkit/src/etc/init.d/rc.sysinit | 24 +++++++++++++++++ .../esp32s3/esp32s3-devkit/src/etc/init.d/rcS | 27 +++++++++++++++++++ 3 files changed, 54 insertions(+) create mode 100644 boards/xtensa/esp32s3/esp32s3-devkit/src/etc/init.d/rc.sysinit create mode 100644 boards/xtensa/esp32s3/esp32s3-devkit/src/etc/init.d/rcS diff --git a/boards/xtensa/esp32s3/esp32s3-devkit/src/Make.defs b/boards/xtensa/esp32s3/esp32s3-devkit/src/Make.defs index 72bfaeabad..2443ad8922 100644 --- a/boards/xtensa/esp32s3/esp32s3-devkit/src/Make.defs +++ b/boards/xtensa/esp32s3/esp32s3-devkit/src/Make.defs @@ -61,3 +61,6 @@ DEPPATH += --dep-path board VPATH += :board CFLAGS += ${INCDIR_PREFIX}$(TOPDIR)$(DELIM)arch$(DELIM)$(CONFIG_ARCH)$(DELIM)src$(DELIM)board$(DELIM)board +ifeq ($(CONFIG_ETC_ROMFS),y) +RCSRCS = etc/init.d/rc.sysinit etc/init.d/rcS +endif diff --git a/boards/xtensa/esp32s3/esp32s3-devkit/src/etc/init.d/rc.sysinit b/boards/xtensa/esp32s3/esp32s3-devkit/src/etc/init.d/rc.sysinit new file mode 100644 index 0000000000..6279920d9b --- /dev/null +++ b/boards/xtensa/esp32s3/esp32s3-devkit/src/etc/init.d/rc.sysinit @@ -0,0 +1,24 @@ +/**************************************************************************** + * boards/xtensa/esp32s3/esp32s3-devkit/src/etc/init.d/rc.sysinit + * + * 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. + * + ****************************************************************************/ + +#include + diff --git a/boards/xtensa/esp32s3/esp32s3-devkit/src/etc/init.d/rcS b/boards/xtensa/esp32s3/esp32s3-devkit/src/etc/init.d/rcS new file mode 100644 index 0000000000..2956b2d02c --- /dev/null +++ b/boards/xtensa/esp32s3/esp32s3-devkit/src/etc/init.d/rcS @@ -0,0 +1,27 @@ +/**************************************************************************** + * boards/xtensa/esp32s3/esp32s3-devkit/src/etc/init.d/rcS + * + * 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. + * + ****************************************************************************/ + +#include + +#ifdef CONFIG_SYSTEM_ADBD +adbd & +#endif