975775
build system: added fallback host recipe.
@@ -180,6 +180,17 @@ common_defaults()
|
|
180
180
|
if [ x"$mb_toolchain" = x ]; then
|
181
181
|
mb_toolchain='binutils'
|
182
182
|
fi
|
183
|
+
|
184
|
+
# fallback host recipe
|
185
|
+
if [ x"$mb_host" != x ]; then
|
186
|
+
if ! [ -f $mb_project_dir/sysinfo/host/$mb_host.mk ]; then
|
187
|
+
if [ -z "$mb_cross_compile" ]; then
|
188
|
+
mb_cross_compile=$mb_host-
|
189
|
+
fi
|
190
|
+
|
191
|
+
mb_host='any-host';
|
192
|
+
fi
|
193
|
+
fi
|
183
194
|
}
|
184
195
|
|
185
196
|
|
@@ -1,9 +1,11 @@
|
|
1
1
|
ifeq ($(CROSS_COMPILE)x,x)
|
2
2
|
CROSS_HOST =
|
3
3
|
CROSS_HOST_SPEC =
|
4
|
-
else
|
4
|
+
else ifeq ($(CROSS_HOST)x,x)
|
5
5
|
CROSS_HOST = $(HOST)
|
6
6
|
CROSS_HOST_SPEC = --target=$(HOST)
|
7
|
+
else
|
8
|
+
CROSS_HOST_SPEC = --target=$(CROSS_HOST)
|
7
9
|
endif
|
8
10
|
|
9
11
|
|
@@ -1,9 +1,11 @@
|
|
1
1
|
ifeq ($(CROSS_COMPILE)x,x)
|
2
2
|
CROSS_HOST =
|
3
3
|
CROSS_HOST_SPEC =
|
4
|
-
else
|
4
|
+
else ifeq ($(CROSS_HOST)x,x)
|
5
5
|
CROSS_HOST = $(HOST)
|
6
6
|
CROSS_HOST_SPEC = --target=$(HOST)
|
7
|
+
else
|
8
|
+
CROSS_HOST_SPEC = --target=$(CROSS_HOST)
|
7
9
|
endif
|
8
10
|
|
9
11
|
|
@@ -0,0 +1,7 @@
|
|
1
|
+
include $(PROJECT_DIR)/sysinfo/os/any-os.mk
|
2
|
+
|
3
|
+
ARCH =
|
4
|
+
HOST_BITS =
|
5
|
+
HOST_UNDERSCORE =
|
6
|
+
|
7
|
+
CROSS_HOST = $(TARGET)
|
@@ -0,0 +1,10 @@
|
|
1
|
+
OS = any-os
|
2
|
+
OS_APP_PREFIX =
|
3
|
+
OS_APP_SUFFIX =
|
4
|
+
OS_LIB_PREFIX = lib
|
5
|
+
OS_LIB_SUFFIX = .so
|
6
|
+
OS_IMPLIB_EXT = .invalid
|
7
|
+
OS_LIBDEF_EXT = .invalid
|
8
|
+
OS_ARCHIVE_EXT = .a
|
9
|
+
|
10
|
+
|