summaryrefslogtreecommitdiff
path: root/src/tools/busybox-1.36.TARGETS
diff options
context:
space:
mode:
authorOliver Reiche <oliver.reiche@huawei.com>2023-10-20 16:07:58 +0200
committerOliver Reiche <oliver.reiche@huawei.com>2023-10-20 16:07:58 +0200
commit060a0cf338d6024eee37cc344c224fe3bcb78e81 (patch)
tree3fea7c654b69ecf3490fe9c6cbc542aba0d5bd8f /src/tools/busybox-1.36.TARGETS
downloadbootstrappable-toolchain-060a0cf338d6024eee37cc344c224fe3bcb78e81.tar.gz
Initial commit
Diffstat (limited to 'src/tools/busybox-1.36.TARGETS')
-rw-r--r--src/tools/busybox-1.36.TARGETS21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/tools/busybox-1.36.TARGETS b/src/tools/busybox-1.36.TARGETS
new file mode 100644
index 0000000..ab5d90b
--- /dev/null
+++ b/src/tools/busybox-1.36.TARGETS
@@ -0,0 +1,21 @@
+{ "toolchain":
+ { "type": "export"
+ , "flexible_config": ["ARCH", "TARGET_ARCH", "TOOLCHAIN_CONFIG", "ENV"]
+ , "target": "busybox"
+ }
+, "busybox":
+ { "type": ["@", "rules", "CC/foreign/shell", "data"]
+ , "project": [["TREE", null, "."]]
+ , "cmds":
+ [ "NJOBS=$(nproc --all 2>/dev/null || echo 1)"
+ , "GCC_TOOLCHAIN=$(dirname ${CC})/.."
+ , "unset CFLAGS CXXFLAGS"
+ , "export LDFLAGS=\"-static\""
+ , "export SOURCE_DATE_EPOCH=0"
+ , "${MAKE} HOSTCC=\"${CC} -static\" HOSTCXX=\"${CXX} -static\" defconfig >configure.log 2>&1 || (cat configure.log && exit 1)"
+ , "${MAKE} -j${NJOBS} HOSTCC=\"${CC} -static\" HOSTCXX=\"${CXX} -static\" >build.log 2>&1 || (cat configure.log build.log && exit 1)"
+ , "${MAKE} -j${NJOBS} HOSTCC=\"${CC} -static\" HOSTCXX=\"${CXX} -static\" CONFIG_PREFIX=${DESTDIR} install >>build.log 2>&1 || (cat configure.log build.log && exit 1)"
+ ]
+ , "out_dirs": ["."]
+ }
+}