Skip to content

Commit 59c0f69

Browse files
committed
os: Add userspace Makefile
Add a userspace Makefile for clean and distclean. When we build loadable apps, userspace.o is built but not cleaned. This can make linking error between other boards. This patch fix this issue by adding userspace Makefile. [Linking Error] ``` make[1]: Leaving directory '/root/tizenrt/os/binfmt' make[1]: Entering directory '/root/tizenrt/loadable_apps' make[2]: Entering directory '/root/tizenrt/loadable_apps/loadable_sample/wifiapp' CC: wifiapp.c arm-none-eabi-ld: error: /root/tizenrt/os/../build/output/bin/app1.relelf uses VFP register arguments, /root/tizenrt/os/userspace/up_userspace.o does not arm-none-eabi-ld: error: /root/tizenrt/os/userspace/up_userspace.o: conflicting CPU architectures 14/17 arm-none-eabi-ld: failed to merge target specific data of file /root/tizenrt/os/userspace/up_userspace.o /root/tizenrt/os/../loadable_apps/loadable.mk:66: recipe for target 'undefsym' failed make[2]: Leaving directory '/root/tizenrt/loadable_apps/loadable_sample/wifiapp' make[2]: *** [undefsym] Error 1 Makefile:71: recipe for target 'loadable_sample/wifiapp_undefsym' failed make[1]: Leaving directory '/root/tizenrt/loadable_apps' make[1]: *** [loadable_sample/wifiapp_undefsym] Error 2 make: *** [pass1] Error 2 Makefile.unix:458: recipe for target 'pass1' failed ``` Signed-off-by: seokhun-eom <seokhun.eom@samsung.com>
1 parent 74eb039 commit 59c0f69

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

os/Directories.mk

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,3 +277,5 @@ CLEANDIRS += se
277277
ifeq ($(CONFIG_NDP120),y)
278278
CONTEXTDIRS += drivers
279279
endif
280+
281+
CLEANDIRS += userspace

os/userspace/Makefile

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
###########################################################################
2+
#
3+
# Copyright 2026 Samsung Electronics All Rights Reserved.
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
14+
# either express or implied. See the License for the specific
15+
# language governing permissions and limitations under the License.
16+
#
17+
###########################################################################
18+
19+
-include $(TOPDIR)/Make.defs
20+
21+
clean:
22+
$(call DELFILE, *.o)
23+
24+
distclean: clean

0 commit comments

Comments
 (0)