Skip to content

Commit

Permalink
Cleaned up a little more after hackfest to get link to work
Browse files Browse the repository at this point in the history
  • Loading branch information
katzfey committed May 22, 2024
1 parent 2bc85ba commit 7669363
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 32 deletions.
3 changes: 1 addition & 2 deletions Tools/ardupilotwaf/boards.py
Original file line number Diff line number Diff line change
Expand Up @@ -1706,8 +1706,7 @@ def configure_env(self, cfg, env):
"--wrap=realloc",
"--wrap=memalign",
"--wrap=__stack_chk_fail",
"-lc",
"-lc++"
"-lc"
]

if not cfg.env.DEBUG:
Expand Down
30 changes: 0 additions & 30 deletions libraries/AP_HAL_QURT/replace.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -169,33 +169,3 @@ float px4muorb_get_cpu_load(void)
return 0.0f;
}

extern "C" void free(void *ptr) {
return;
}

// malloc
extern "C" void *malloc(size_t size) {
return NULL;
}

// posix_memalign
extern "C" int posix_memalign(void **memptr, size_t alignment, size_t size) {
return 0;
}

// calloc
extern "C" void *calloc(size_t nmemb, size_t size) {
return NULL;
}


// realloc
extern "C" void *realloc(void *ptr, size_t size) {
return NULL;
}

// nanosleep
#include <time.h>
extern "C" int nanosleep(const struct timespec *req, struct timespec *_Nullable rem) {
return 0;
}

0 comments on commit 7669363

Please sign in to comment.