Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions projects/ROCKNIX/packages/audio/fluidsynth/package.mk
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,7 @@ PKG_CMAKE_OPTS_TARGET="-DBUILD_SHARED_LIBS=1 \
-Denable-pulseaudio=1 \
-Denable-systemd=1 \
-Denable-readline=0"

pre_configure_target() {
export LDFLAGS="${LDFLAGS} -Wl,-rpath-link,${TOOLCHAIN}/${TARGET_NAME}/lib"
}
10 changes: 9 additions & 1 deletion projects/ROCKNIX/packages/devel/ncurses/package.mk
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,20 @@ PKG_CONFIGURE_OPTS_TARGET="--without-ada \
--enable-sigwinch \
--cache-file=config.cache"

PKG_CONFIGURE_OPTS_HOST="--enable-termcap \
PKG_CONFIGURE_OPTS_HOST="--without-cxx-binding \
--enable-termcap \
--with-termlib \
--with-shared \
--enable-pc-files \
--without-tests \
--without-manpages"

pre_configure_host() {
unset TERMINFO
unset TERMINFO_DIR
}


pre_configure_target() {
cat >config.cache <<EOF
cf_cv_builtin_bool=yes
Expand All @@ -78,6 +85,7 @@ EOF
CFLAGS="${CFLAGS} -std=gnu17"
}


post_makeinstall_target() {
local f
cp misc/ncurses-config ${TOOLCHAIN}/bin
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
diff --git a/source/opt/decoration_manager.cpp b/source/opt/decoration_manager.cpp
index 3e95dbc..92657fb 100644
--- a/source/opt/decoration_manager.cpp
+++ b/source/opt/decoration_manager.cpp
@@ -543,7 +543,8 @@ void DecorationManager::CloneDecorations(uint32_t from, uint32_t to) {
const uint32_t num_operands = inst->NumOperands();
for (uint32_t i = 1; i < num_operands; i += 2) {
Operand op = inst->GetOperand(i);
- if (op.words[0] == from) { // add new pair of operands: (to, literal)
+ if (!op.words.empty() &&
+ op.words[0] == from) {
inst->AddOperand(
Operand(spv_operand_type_t::SPV_OPERAND_TYPE_ID, {to}));
op = inst->GetOperand(i + 1);
79 changes: 79 additions & 0 deletions projects/ROCKNIX/packages/tools/grub/patches/grub-const-char.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
diff --git a/grub-core/osdep/linux/ofpath.c b/grub-core/osdep/linux/ofpath.c
index a6153d3..79e442b 100644
--- a/grub-core/osdep/linux/ofpath.c
+++ b/grub-core/osdep/linux/ofpath.c
@@ -488,13 +488,13 @@ check_hba_identifiers (const char *sysfs_path, int *vendor, int *device_id)
static void
check_sas (const char *sysfs_path, int *tgt, unsigned long int *sas_address)
{
- char *ed = strstr (sysfs_path, "end_device");
- char *p, *q, *path;
+ const char *sysfs_ed = strstr (sysfs_path, "end_device");
+ char *ed, *p, *q, *path;
char phy[21];
int fd;
size_t path_size;

- if (!ed)
+ if (!sysfs_ed)
return;

/* SAS devices are identified using disk@$PHY_ID */
diff --git a/util/probe.c b/util/probe.c
index 81d91cf..a9158d6 100644
--- a/util/probe.c
+++ b/util/probe.c
@@ -70,7 +70,7 @@ char *
grub_util_guess_bios_drive (const char *orig_path)
{
char *canon;
- char *ptr;
+ const char *ptr;
canon = grub_canonicalize_file_name (orig_path);
if (!canon)
return NULL;
@@ -99,7 +99,7 @@ char *
grub_util_guess_efi_drive (const char *orig_path)
{
char *canon;
- char *ptr;
+ const char *ptr;
canon = grub_canonicalize_file_name (orig_path);
if (!canon)
return NULL;
@@ -128,7 +128,7 @@ char *
grub_util_guess_baremetal_drive (const char *orig_path)
{
char *canon;
- char *ptr;
+ const char *ptr;
canon = grub_canonicalize_file_name (orig_path);
if (!canon)
return NULL;
diff --git a/util/resolve.c b/util/resolve.c
index b6e2631..5310a55 100644
--- a/util/resolve.c
+++ b/util/resolve.c
@@ -138,8 +138,8 @@ read_dep_list (FILE *fp)
static char *
get_module_name (const char *str)
{
- char *base;
- char *ext;
+ const char *base;
+ const char *ext;

base = strrchr (str, '/');
if (! base)
@@ -164,9 +164,9 @@ get_module_name (const char *str)
static char *
get_module_path (const char *prefix, const char *str)
{
- char *dir;
+ const char *dir;
char *base;
- char *ext;
+ const char *ext;
char *ret;

ext = strrchr (str, '.');