Skip to content

Commit

Permalink
sim_offload: move out of the posix directory
Browse files Browse the repository at this point in the history
VELAPLATFO-37635

The libmad and libmp3lame libraries have been ported to
apps/audioutils and will be compiled with NuttX.

Change-Id: Iec5e43da5b1a3d1d0eb4f80457f893a4131fd6f9
Signed-off-by: shizhenghui <[email protected]>
  • Loading branch information
shizhenghui committed Aug 21, 2024
1 parent 607b84f commit a68256f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
1 change: 0 additions & 1 deletion arch/sim/src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,6 @@ ifeq ($(CONFIG_SIM_SOUND_ALSA),y)
CSRCS += sim_alsa.c
CSRCS += sim_offload.c
STDLIBS += -lasound
STDLIBS += -lmp3lame
endif

ifeq ($(CONFIG_SIM_CAMERA_V4L2),y)
Expand Down
3 changes: 1 addition & 2 deletions arch/sim/src/sim/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,9 @@ endif()

if(CONFIG_SIM_SOUND_ALSA)
list(APPEND SRCS posix/sim_alsa.c)
list(APPEND SRCS posix/sim_offload.c)
list(APPEND SRCS sim_offload.c)
list(APPEND STDLIBS asound)
list(APPEND STDLIBS mad)
list(APPEND STDLIBS mp3lame)
endif()

# host sources ###############################################################
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/****************************************************************************
* arch/sim/src/sim/posix/sim_offload.c
* arch/sim/src/sim/sim_offload.c
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/****************************************************************************
* arch/sim/src/sim/posix/sim_offload.h
* arch/sim/src/sim/sim_offload.h
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
Expand All @@ -18,8 +18,8 @@
*
****************************************************************************/

#ifndef __ARCH_SIM_SRC_POSIX_SIM_OFFLOAD_H
#define __ARCH_SIM_SRC_POSIX_SIM_OFFLOAD_H
#ifndef __ARCH_SIM_SRC_SIM_OFFLOAD_H
#define __ARCH_SIM_SRC_SIM_OFFLOAD_H

/****************************************************************************
* Included Files
Expand Down Expand Up @@ -74,4 +74,4 @@ typedef struct sim_codec_ops_s

extern const sim_codec_ops_s g_codec_ops[];

#endif /* __ARCH_SIM_SRC_POSIX_SIM_OFFLOAD_H */
#endif /* __ARCH_SIM_SRC_SIM_OFFLOAD_H */

0 comments on commit a68256f

Please sign in to comment.