Skip to content

Commit d70196b

Browse files
AdithyaBaglodyAnas Nashif
authored and
Anas Nashif
committed
linker-defs: Increase the number of kernel objects
Required to compile large samples/tests. Signed-off-by: Adithya Baglody <[email protected]>
1 parent 4377540 commit d70196b

File tree

2 files changed

+23
-2
lines changed

2 files changed

+23
-2
lines changed

include/linker/linker-defs.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@
111111

112112
#ifndef NUM_KERNEL_OBJECT_FILES
113113
#error "Expected NUM_KERNEL_OBJECT_FILES to be defined"
114-
#elif NUM_KERNEL_OBJECT_FILES > 19
115-
#error "Max supported kernel objects is 19."
114+
#elif NUM_KERNEL_OBJECT_FILES > 32
115+
#error "Max supported kernel objects is 32."
116116
/* TODO: Using the preprocessor to do this was a mistake. Rewrite to
117117
scale better. e.g. by aggregating the kernel objects into two
118118
archives like KBuild did.*/

include/misc/util.h

+21
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,27 @@ static inline s64_t arithmetic_shift_right(s64_t value, u8_t shift)
241241
#define UTIL_DEC_17 16
242242
#define UTIL_DEC_18 17
243243
#define UTIL_DEC_19 18
244+
#define UTIL_DEC_20 19
245+
#define UTIL_DEC_21 20
246+
#define UTIL_DEC_22 21
247+
#define UTIL_DEC_23 22
248+
#define UTIL_DEC_24 23
249+
#define UTIL_DEC_25 24
250+
#define UTIL_DEC_26 25
251+
#define UTIL_DEC_27 26
252+
#define UTIL_DEC_28 27
253+
#define UTIL_DEC_29 28
254+
#define UTIL_DEC_30 29
255+
#define UTIL_DEC_31 30
256+
#define UTIL_DEC_32 31
257+
#define UTIL_DEC_33 32
258+
#define UTIL_DEC_34 33
259+
#define UTIL_DEC_35 34
260+
#define UTIL_DEC_36 35
261+
#define UTIL_DEC_37 36
262+
#define UTIL_DEC_38 37
263+
#define UTIL_DEC_39 38
264+
#define UTIL_DEC_40 39
244265

245266
#define UTIL_CHECK_N(x, n, ...) n
246267
#define UTIL_CHECK(...) UTIL_CHECK_N(__VA_ARGS__, 0,)

0 commit comments

Comments
 (0)