2022-02-10 16:47:38 +03:00
|
|
|
#! /bin/sh
|
|
|
|
|
2022-02-10 16:50:55 +03:00
|
|
|
set -e
|
|
|
|
|
2022-02-10 16:47:38 +03:00
|
|
|
LC_ALL=C
|
|
|
|
export LC_ALL
|
|
|
|
|
|
|
|
cat <<EOF
|
2022-04-15 17:13:08 +03:00
|
|
|
const uint8_t binary_limine_hdd_bin_data[] = {
|
2022-02-10 16:47:38 +03:00
|
|
|
EOF
|
|
|
|
|
2022-02-11 22:07:03 +03:00
|
|
|
od -v -An -t x1 <limine-hdd.bin | "$SED" '/^$/d;s/ */ /g;s/ *$//g;s/ /, 0x/g;s/^, / /g;s/$/,/g'
|
2022-02-10 16:47:38 +03:00
|
|
|
|
|
|
|
cat <<EOF
|
|
|
|
};
|
|
|
|
EOF
|