summaryrefslogtreecommitdiff
path: root/src/tools/busybox-1.36.TARGETS
diff options
context:
space:
mode:
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": ["."]
+ }
+}