summaryrefslogtreecommitdiff
path: root/etc/scripts/bootstrap-busybox/appletlib.c
diff options
context:
space:
mode:
authorOliver Reiche <oliver.reiche@gmail.com>2023-12-29 18:46:18 +0100
committerOliver Reiche <oliver.reiche@huawei.com>2024-01-10 13:21:17 +0100
commitaea952933058d1f71173f142fc1ec55a14849f48 (patch)
treed857fde70509d77e9aa35a1c0e986b217c54c942 /etc/scripts/bootstrap-busybox/appletlib.c
parent19faf1fa1f5aff4854377824e6d4a8b9c0c09032 (diff)
downloadbootstrappable-toolchain-aea952933058d1f71173f142fc1ec55a14849f48.tar.gz
stage-0/busybox: Bootstrap via proper Justbuild target
Diffstat (limited to 'etc/scripts/bootstrap-busybox/appletlib.c')
-rw-r--r--etc/scripts/bootstrap-busybox/appletlib.c37
1 files changed, 0 insertions, 37 deletions
diff --git a/etc/scripts/bootstrap-busybox/appletlib.c b/etc/scripts/bootstrap-busybox/appletlib.c
deleted file mode 100644
index aa63360..0000000
--- a/etc/scripts/bootstrap-busybox/appletlib.c
+++ /dev/null
@@ -1,37 +0,0 @@
-/*
- * Minimalistic implementation of appletlib.c that does not require any header
- * generation.
- */
-#define stringify_impl(x) #x
-#define stringify(x) stringify_impl(x)
-#define concat(x,y) x##y
-#define applet_main(name) concat(name, _main)
-
-/* Define this accessor before we #define "errno" our way */
-#include <errno.h>
-static inline int *get_perrno(void) { return &errno; }
-
-#include stringify(APPLET_GROUP/APPLET_NAME.c)
-
-int main(int argc, char **argv) {
-#ifdef bb_cached_errno_ptr
- ASSIGN_CONST_PTR(&bb_errno, get_perrno());
-#endif
- return applet_main(APPLET_NAME)(argc, argv);
-}
-
-/* missing definitions from appletlib.c */
-const char *applet_name = stringify(APPLET_NAME);
-void bb_show_usage() { xfunc_die(); }
-unsigned string_array_len(char **argv) {
- char **start = argv;
- while (*argv)
- argv++;
- return argv - start;
-}
-
-/* missing definitions for tar.c (despite 'to_command' being disabled) */
-#include "bb_archive.h"
-void FAST_FUNC data_extract_to_command(archive_handle_t *archive_handle) {
- /* unused */
-}