Home
last modified time | relevance | path

Searched +full:0 +full:- +full:nolibc (Results 1 – 25 of 40) sorted by relevance

12

/openbmc/u-boot/tools/buildman/
H A DREADME1 # SPDX-License-Identifier: GPL-2.0+
6 Quick-start
12 cd /path/to/u-boot
14 buildman --fetch-arch arm
15 buildman -k rpi_2
17 # u-boot.bin is the output image
23 This tool handles building U-Boot to check that you have not broken it
26 to make full use of multi-processor machines.
38 where it left off. This should happen cleanly and without side-effects.
42 You may need to press Ctrl-C several times to quit it. Also it will print
[all …]
/openbmc/linux/tools/testing/selftests/nolibc/
H A DMakefile1 # SPDX-License-Identifier: GPL-2.0
2 # Makefile for nolibc tests
4 # We need this for the "cc-option" macro.
7 # we're in ".../tools/testing/selftests/nolibc"
19 # and the Qemu program used. It is copied as-is into ARCH except for
23 # -------------|-----------|-------------------------
91 # QEMU_ARGS : some arch-specific args to pass to qemu
92 QEMU_ARGS_i386 = -M pc -append "console=ttyS0,9600 i8042.noaux panic=-1 $(TEST:%=NOLIBC_TEST=…
93 QEMU_ARGS_x86_64 = -M pc -append "console=ttyS0,9600 i8042.noaux panic=-1 $(TEST:%=NOLIBC_TEST=…
94 QEMU_ARGS_x86 = -M pc -append "console=ttyS0,9600 i8042.noaux panic=-1 $(TEST:%=NOLIBC_TEST=…
[all …]
H A Dnolibc-test.c1 /* SPDX-License-Identifier: GPL-2.0 */
6 /* libc-specific include files
8 * $(CC) -nostdlib -include /path/to/nolibc.h => NOLIBC already defined
9 * $(CC) -nostdlib -I/path/to/nolibc/sysroot => _NOLIBC_* guards are present
10 * $(CC) with default libc => NOLIBC* never defined
12 #ifndef NOLIBC
44 /* for the type of int_fast16_t and int_fast32_t, musl differs from glibc and nolibc */
45 …NT_MAX_OF_TYPE(type) (((type)1 << (sizeof(type) * 8 - 2)) - (type)1 + ((type)1 << (sizeof(type) * …
46 #define SINT_MIN_OF_TYPE(type) (-SINT_MAX_OF_TYPE(type) - 1)
73 return (ret >= 0 && ret < sizeof(buf)) ? buf : "#err"; in itoa()
[all …]
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-support/liburing/liburing/
H A D0001-test-Compile-nolibc.c-only-when-CONFIG_NOLIBC-is-set.patch4 Subject: [PATCH] test: Compile nolibc.c only when CONFIG_NOLIBC is set
6 building nolibc.c fails for non nolibc targets
9 In file included from nolibc.c:33:
15 Upstream-Status: Backport [https://github.com/axboe/liburing/commit/a182f62c01f981cd9dd508ec952fbc9…
16 Signed-off-by: Khem Raj <raj.khem@gmail.com>
17 ---
18 test/Makefile | 5 ++++-
19 1 file changed, 4 insertions(+), 1 deletion(-)
21 diff --git a/test/Makefile b/test/Makefile
22 index 0538a75..0dfecb8 100644
[all …]
/openbmc/qemu/.gitlab-ci.d/opensbi/
H A DDockerfile2 # Docker image to cross-compile OpenSBI firmware binaries
13 apt install --assume-yes --no-install-recommends \
14 build-essential \
15 ca-certificates \
22 rm -rf /var/lib/apt/lists/*
24 # Manually install the kernel.org "Crosstool" based toolchains for gcc-8.3
25 RUN wget -O - \
26 …s.edge.kernel.org/pub/tools/crosstool/files/bin/x86_64/8.3.0/x86_64-gcc-8.3.0-nolibc-riscv32-linux…
27 | tar -C /opt -xJ
28 RUN wget -O - \
[all …]
/openbmc/linux/tools/testing/selftests/rcutorture/bin/
H A Dmkinitrd.sh2 # SPDX-License-Identifier: GPL-2.0+
13 if [ ! -d "$D" ]; then
17 if [ -s "$D/initrd/init" ]; then
19 exit 0
22 # Create a C-language initrd/init infinite-loop program and statically
24 echo "Creating a statically linked C-language initrd"
26 mkdir -p initrd
29 #ifndef NOLIBC
42 printf("Torture-test rudimentary init program started, command line:\n");
43 for (i = 0; i < argc; i++)
[all …]
/openbmc/linux/tools/include/nolibc/
H A Derrno.h1 /* SPDX-License-Identifier: LGPL-2.1 OR MIT */
3 * Minimal errno definitions for NOLIBC
4 * Copyright (C) 2017-2022 Willy Tarreau <w@1wt.eu>
13 #define SET_ERRNO(v) do { errno = (v); } while (0)
16 #define SET_ERRNO(v) do { } while (0)
26 #include "nolibc.h"
H A Dunistd.h1 /* SPDX-License-Identifier: LGPL-2.1 OR MIT */
3 * unistd function definitions for NOLIBC
4 * Copyright (C) 2017-2022 Willy Tarreau <w@1wt.eu>
16 #define STDIN_FILENO 0
26 if (sys_select(0, 0, 0, 0, &my_timeval) < 0) in msleep()
31 return 0; in msleep()
37 struct timeval my_timeval = { seconds, 0 }; in sleep()
39 if (sys_select(0, 0, 0, 0, &my_timeval) < 0) in sleep()
42 return 0; in sleep()
50 return sys_select(0, 0, 0, 0, &my_timeval); in usleep()
[all …]
H A Dctype.h1 /* SPDX-License-Identifier: LGPL-2.1 OR MIT */
3 * ctype function definitions for NOLIBC
4 * Copyright (C) 2017-2021 Willy Tarreau <w@1wt.eu>
19 /* 0x00..0x7f */ in isascii()
20 return (unsigned int)c <= 0x7f; in isascii()
32 /* 0x00..0x1f, 0x7f */ in iscntrl()
33 return (unsigned int)c < 0x20 || c == 0x7f; in iscntrl()
39 return (unsigned int)(c - '0') < 10; in isdigit()
45 /* 0x21..0x7e */ in isgraph()
46 return (unsigned int)(c - 0x21) < 0x5e; in isgraph()
[all …]
H A Dstdio.h1 /* SPDX-License-Identifier: LGPL-2.1 OR MIT */
3 * minimal stdio function definitions for NOLIBC
4 * Copyright (C) 2017-2021 Willy Tarreau <w@1wt.eu>
21 #define EOF (-1)
25 #define _IOFBF 0 /* Fully buffered. */
29 /* just define FILE as a non-empty type. The value of the pointer gives
30 * the FD: FILE=~fd for fd>=0 or NULL for fd<0. This way positive FILE
46 if (fd < 0) { in fdopen()
59 if (i >= 0) { in fileno()
61 return -1; in fileno()
[all …]
H A Dstd.h1 /* SPDX-License-Identifier: LGPL-2.1 OR MIT */
3 * Standard definitions and types for NOLIBC
4 * Copyright (C) 2017-2021 Willy Tarreau <w@1wt.eu>
12 * integer type definitions and generic macros here, but avoid OS-specific and
13 * syscall-specific stuff, as this file is expected to be included very early.
18 #define NULL ((void *)0)
H A Dstackprotector.h1 /* SPDX-License-Identifier: LGPL-2.1 OR MIT */
3 * Stack protector support for NOLIBC
42 my_syscall3(__NR_getrandom, &__stack_chk_guard, sizeof(__stack_chk_guard), 0); in __stack_chk_init()
43 /* a bit more randomness in case getrandom() fails, ensure the guard is never 0 */ in __stack_chk_init()
H A Dtypes.h1 /* SPDX-License-Identifier: LGPL-2.1 OR MIT */
3 * Special types used by various syscalls for NOLIBC
4 * Copyright (C) 2017-2021 Willy Tarreau <w@1wt.eu>
17 /* Only the generic macros and types may be defined here. The arch-specific
61 #define DT_UNKNOWN 0x0
62 #define DT_FIFO 0x1
63 #define DT_CHR 0x2
64 #define DT_DIR 0x4
65 #define DT_BLK 0x6
66 #define DT_REG 0x8
[all …]
H A Dstring.h1 /* SPDX-License-Identifier: LGPL-2.1 OR MIT */
3 * string function definitions for NOLIBC
4 * Copyright (C) 2017-2021 Willy Tarreau <w@1wt.eu>
21 size_t ofs = 0; in memcmp()
22 int c1 = 0; in memcmp()
24 while (ofs < n && !(c1 = ((unsigned char *)s1)[ofs] - ((unsigned char *)s2)[ofs])) { in memcmp()
33 size_t pos = 0; in _nolibc_memcpy_up()
46 len--; in _nolibc_memcpy_down()
52 /* might be ignored by the compiler without -ffreestanding, then found as
61 dir = -1; in memmove()
[all …]
H A Dcrt.h1 /* SPDX-License-Identifier: LGPL-2.1 OR MIT */
3 * C Run Time support for NOLIBC
30 * sp : argc <-- argument count, required by main() in _start_c()
31 * argv: argv[0] <-- argument vector, required by main() in _start_c()
34 * argv[argc-1] in _start_c()
36 * environ: environ[0] <-- environment variables, required by main() and getenv() in _start_c()
40 * _auxv: _auxv[0] <-- auxiliary vector, required by getauxval() in _start_c()
H A Dstdlib.h1 /* SPDX-License-Identifier: LGPL-2.1 OR MIT */
3 * stdlib function definitions for NOLIBC
4 * Copyright (C) 2017-2021 Willy Tarreau <w@1wt.eu>
22 /* Buffer used to store int-to-ASCII conversions. Will only be implemented if
24 * store "18446744073709551615" or "-9223372036854775808" and the final zero.
43 unsigned long ret = 0; in atol()
45 int neg = 0; in atol()
47 if (*s == '-') { in atol()
53 d = (*s++) - '0'; in atol()
60 return neg ? -ret : ret; in atol()
[all …]
H A Darch-loongarch.h1 /* SPDX-License-Identifier: LGPL-2.1 OR MIT */
3 * LoongArch specific definitions for NOLIBC
14 * - stack is 16-byte aligned
15 * - syscall number is passed in a7
16 * - arguments are in a0, a1, a2, a3, a4, a5
17 * - the system call is performed by calling "syscall 0"
18 * - syscall return comes in a0
19 * - the arguments are cast to long and assigned into the target
35 "syscall 0\n" \
49 "syscall 0\n" \
[all …]
H A Darch-aarch64.h1 /* SPDX-License-Identifier: LGPL-2.1 OR MIT */
3 * AARCH64 specific definitions for NOLIBC
4 * Copyright (C) 2017-2022 Willy Tarreau <w@1wt.eu>
14 * - registers are 64-bit
15 * - stack is 16-byte aligned
16 * - syscall number is passed in x8
17 * - arguments are in x0, x1, x2, x3, x4, x5
18 * - the system call is performed by calling svc 0
19 * - syscall return comes in x0.
20 * - the arguments are cast to long and assigned into the target registers
[all …]
/openbmc/linux/tools/testing/selftests/
H A Dkselftest.h1 /* SPDX-License-Identifier: GPL-2.0 */
3 * kselftest.h: low-level kselftest framework to include from
46 #ifndef NOLIBC
57 #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
72 : "0" (level), "2" (count))
76 #define KSFT_PASS 0
125 setvbuf(stdout, NULL, _IOLBF, 0); in ksft_print_header()
162 #ifndef NOLIBC in ksft_perror()
166 * nolibc doesn't provide strerror() and it seems in ksft_perror()
202 * ksft_test_result() - Report test success based on truth of condition
[all …]
/openbmc/linux/tools/testing/selftests/arm64/abi/
H A Dtpidr2.c1 // SPDX-License-Identifier: GPL-2.0-only
22 c = '0' + (num % 10); in putnum()
34 "msr " SYS_TPIDR2 ", %0\n" in set_tpidr2()
45 "mrs %0, " SYS_TPIDR2 "\n" in get_tpidr2()
62 putstr(" xfail:0 xpass:0 skip:"); in print_summary()
64 putstr(" error:0\n"); in print_summary()
67 /* Processes should start with TPIDR2 == 0 */
70 return get_tpidr2() == 0; in default_value()
105 if (newpid == 0) { in write_fork_read()
111 exit(0); in write_fork_read()
[all …]
/openbmc/linux/tools/testing/ktest/examples/
H A Dcrosstests.conf14 # /usr/local/gcc-4.5.2-nolibc/mips-linux/bin/mips-linux-gcc
16 # Some of the archs will use gcc-4.5.1 instead of gcc-4.5.2
33 OUTPUT_DIR = ${THIS_DIR}/cross-compile
35 # The build will be compiled with -j8
36 BUILD_OPTIONS = -j8
39 DIE_ON_FAILURE = 0
57 DO_FAILED := 0
78 MAKE_CMD = PATH=/usr/local/gcc-${GCC_VER}-nolibc/${CROSS}/bin:$PATH CROSS_COMPILE=${CROSS}- make AR…
84 # the add-config file and uncomment this option. This is useful if you want to test
86 #ADD_CONFIG = ${THIS_DIR}/add-config
[all …]
/openbmc/linux/tools/testing/selftests/arm64/fp/
H A Dza-fork.c1 // SPDX-License-Identifier: GPL-2.0-only
7 // SPDX-License-Identifier: GPL-2.0-only
30 if (newpid == 0) { in fork_test_c()
34 exit(0); in fork_test_c()
39 if (newpid < 0) { in fork_test_c()
42 return 0; in fork_test_c()
50 waiting = waitpid(newpid, &child_status, 0); in fork_test_c()
52 if (waiting < 0) { in fork_test_c()
56 return 0; in fork_test_c()
60 return 0; in fork_test_c()
[all …]
/openbmc/openbmc/poky/meta/classes/
H A Dbuildhistory.bbclass6 # Copyright (C) 2011-2016 Intel Corporation
7 # Copyright (C) 2007-2011 Koen Kooi <koen@openembedded.org>
9 # SPDX-License-Identifier: MIT
12 IMAGE_CLASSES += "image-artifact-names"
19 # Setting this to non-empty will remove the old content of the buildhistory as part of
29 # the "version-going-backwards" check still works. When relying on that, be careful
43 BUILDHISTORY_SDK_FILES ?= "conf/local.conf conf/bblayers.conf conf/auto.conf conf/locked-sigs.inc c…
85 mkdir --parents ${BUILDHISTORY_DIR_PACKAGE}
87 class-native|class-cross|class-crosssdk)
108 return 0
[all …]
/openbmc/linux/Documentation/dev-tools/kunit/
H A Drun_wrapper.rst1 .. SPDX-License-Identifier: GPL-2.0
9 manually, see: Documentation/dev-tools/kunit/run_manual.rst.
17 .. code-block::
23 .. code-block::
31 .. code-block::
33 ./tools/testing/kunit/kunit.py run --timeout=30 --jobs=`nproc --all`
35 - ``--timeout`` sets a maximum amount of time for tests to run.
36 - ``--jobs`` sets the number of threads to build the kernel.
45 tests we want to run independently, or if we want to use pre-defined
51 .. code-block::
[all …]
/openbmc/u-boot/doc/
H A DREADME.m68k2 U-Boot for Motorola (or Freescale/NXP) ColdFire processors
8 August 08, 2005 Jens Scharsig <esw@bus-elektronik.de>
14 This file contains status information for the port of U-Boot to the
25 Bernhard Kuhn ported U-Boot 0.4.0 to the Motorola ColdFire architecture.
27 of these patches was that they needed a pre-bootloader to start U-Boot.
31 Thanks mainly to Freescale but also to several other contributors, U-Boot now
44 U-Boot supports actually more than 40 ColdFire based boards.
56 It is possible to build all ColdFire boards in a single command-line command,
57 from u-boot root directory, as:
62 3.1. Build U-Boot for a specific board
[all …]

12