Commit Graph

650 Commits

Author SHA1 Message Date
Ash Logan
540b1de3a7 samples: Remove deprecated cmake macros 2019-05-22 11:56:28 +10:00
Ash Logan
3452359c0c cafe: remove snd_core and snd_user 2019-05-04 20:56:31 +10:00
Ash Logan
6deadfc192 changelog: Add note about entrypoint changes 2019-05-03 18:18:30 +10:00
Ash Logan
65d7bdd3e5 cmake: Add libwut to standard include dirs
apparently cmake also has a CMAKE_<LANG>_STANDARD_INCLUDE_DIRECTORIES
2019-05-03 18:08:42 +10:00
Ash Logan
4374621f4b wut.ld: make __rpx_start the default entry symbol, remove rpx.specs
ld will now auto-link everything to __rpx_start and pull in the correct 
crt *unless* rpl.specs is given on the commandline
2019-05-03 18:02:15 +10:00
Ash Logan
5528236b56 wut.ld: don't EXTERN(_start)
This made _start be an always undefined symbol, which kinda backdoors 
ld's existing system for determining entrypoints. This will be important 
in the next commit ;D
2019-05-03 17:59:34 +10:00
Ash Logan
5087ca6c88 cmake: Add libwut as a standard library
https://gitlab.kitware.com/cmake/cmake/issues/18222
2019-05-03 17:48:59 +10:00
Ash Logan
6e08d7791e wut.mk: add stubs, add deprecation warnings 2019-04-23 21:24:51 +10:00
Ash Logan
49c0295a84 changelog: Note deprecation of static libs, wut_enable_* 2019-04-23 21:05:10 +10:00
Ash Logan
f49667591d Makefile: don't bother with .gnu.warning, just generate empty stubs 2019-04-23 21:04:28 +10:00
Ash Logan
d542fdc438 wut.cmake: Use wut.specs and libwut in wut_create_rpx 2019-04-23 20:40:09 +10:00
Ash Logan
4828abdc1a wut.cmake: Deprecate old wut_enable_* macros 2019-04-23 20:37:47 +10:00
Ash Logan
b02d37836f Makefile: Generate stub cafe libraries w/ .gnu.warning sections 2019-04-23 20:37:17 +10:00
Ash Logan
6aac84dc6f Makefile: change directories to order-only 2019-04-23 19:50:04 +10:00
Ash Logan
28ffb89c02 Merge 'build-refactor' attempt #1; get upstream changes 2019-04-23 18:37:05 +10:00
Ash Logan
46d6edd81b wut.ld: Concat and garbage-collect rpx import sections 2019-04-22 14:42:46 +10:00
Ash Logan
55007e5ec7 changelog: start writing down what's changed 2019-04-22 13:08:36 +10:00
Ash Logan
f92657e8b5 coreinit: Use rplwrap for exit (__rplwrap_exit) 2019-04-22 12:43:37 +10:00
Ash Logan
f7af9c3316 include/coreinit: First pass at coreinit/codegen.h 2019-04-22 10:12:28 +10:00
Ash Logan
4278819a01 samples: make WUT_ROOT makefile-local, always rely on DEVKITPRO 2019-04-09 20:59:32 +10:00
Ash Logan
09c16421d8 samples: Add explicit rules for .elf intermediates 2019-04-09 20:44:54 +10:00
Ash Logan
fb9b7ab3fb wutstdc++: remove volatile keyword
Who knows? not me. Seems to work okay without it
wut_stdcpp.cpp
/home/ash/src/wut/libraries/wutstdc++/wut_stdcpp.cpp:3:9: error: 
expected '(' before '__volatile__'
 __asm__ __volatile__(
         ^~~~~~~~~~~~
         (
/home/ash/src/wut/libraries/wutstdc++/wut_stdcpp.cpp:4:4: error: 
expected unqualified-id before string constant
    "\t.section\t.text.__wrap___gxx_personality_v0,\"ax\",@progbits\n"
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/ash/src/wut/libraries/wutstdc++/wut_stdcpp.cpp:3:22: error: 
expected ')' before string constant
 __asm__ __volatile__(
                     ~^
                      )
    "\t.section\t.text.__wrap___gxx_personality_v0,\"ax\",@progbits\n"
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[1]: *** [/opt/devkitpro/devkitPPC/base_rules:13: wut_stdcpp.o] 
Error 1
2019-04-09 20:41:45 +10:00
Ash Logan
869fe709ea Revert "wutstdc++: Move __gxx_personality to dedicated Assembly file"
This reverts commit 370eeb28e9.
I didn't know what this did, sorry.
2019-04-09 20:26:35 +10:00
Ash Logan
81285c71f6 samples: port helloworld_cpp to make 2019-04-09 19:28:27 +10:00
Ash Logan
b7a12a04a7 travis: Update WUT_ROOT temporary location 2019-04-09 19:25:27 +10:00
Ash Logan
592110eeb3 travis: remove spurious cd 2019-04-09 19:21:17 +10:00
Ash Logan
aa122e0366 travis: Fixups for new build system 2019-04-09 19:17:52 +10:00
Ash Logan
37afdf9095 samples: port helloworld to make 2019-04-09 19:15:24 +10:00
Ash Logan
5f1da6432c samples: Move all into cmake directory, WUT_ROOT->DEVKITPRO/wut 2019-04-09 18:39:03 +10:00
Ash Logan
5e784d292f wut.mk: don't depend on WUT_ROOT
Brings wut.mk in line with the other build systems - probably the last 
real love it'll get.
2019-04-09 18:29:44 +10:00
Ash Logan
370eeb28e9 wutstdc++: Move __gxx_personality to dedicated Assembly file
I was getting issues with __volatile__ for unknown reason, so moving 
this to a dedicated file sidesteps the issue entirely and passes this 
straight to GAS.
2019-04-09 16:44:42 +10:00
Dave Murphy
96cf21131d CMake fixups (#104)
* Provide default $WUT_ROOT

* default install path to /opt/devkitpro/wut

* only reinstall tools when required

* Correct search paths

* allow host paths for programs

* find tools via PATH & CMAKE_FIND_ROOT_PATH

* specify root path without bin component
2019-04-04 12:01:17 +11:00
Dave Murphy
1afdff1a21 devkitPro is an organisation, not software 2019-03-20 10:24:01 +00:00
Ash Logan
c15ed46e7a cmake: don't use include_directories (reverts add09e7)
Turns out this actually doesn't work? god only knows how it didn't get 
caught.
2019-03-18 19:03:31 +11:00
rw-r-r-0644
4d7517a630 nsysnet: Add other supported socket options 2019-03-16 10:37:17 +00:00
rw-r-r-0644
34bfddb581 dmae: Add DMAECopyMem, DMAEFillMem and DMAEWaitDone (#102)
* dmae: Add DMAECopyMem, DMAEFillMem and DMAEWaitDone

* tests: Add dmae to header compile test list
2019-02-28 17:10:10 +11:00
rw-r-r-0644
6ea6625b78 devoptab: Fix double free in __wut_fs_stat
The double free caused apps to crash when attempting to run stat on a directory
2019-02-24 15:48:46 +00:00
rw-r-r-0644
254de47b15 makefile: Update wut-tools path. 2019-02-21 08:55:30 +00:00
Ash Logan
86a8526725 include/nn/ac: Document existing nn_ac functions 2019-02-21 08:55:08 +00:00
Ash Logan
b2e6bc52d0 include/nn: Basic nn::Result docs (IsSuccess, IsFailure) 2019-02-21 08:55:08 +00:00
Ash Logan
f955e734df include/swkbd: First shot at documenting swkbd
Mostly based off wut's example, but hey, should be pretty good!
2019-02-21 08:55:08 +00:00
Ash Logan
0f4e01e769 include/coreinit: Add missing doxygen group end to memorymap.h 2019-02-21 08:55:08 +00:00
Ash Logan
b142d92e36 include/sysapp: Add title.h - SYSCheckTitleExists, SYSGetPFIDFromTitleID 2019-02-21 08:55:08 +00:00
Ash Logan
610ed35050 include/sysapp: Minor documentation updates (procui works!) 2019-02-21 08:55:08 +00:00
fincs
0b920cf9b9 Automatically link wutstdc++ when C++ is used 2019-02-12 12:46:34 +01:00
fincs
3e179891e9 Make sure .fexports/.dexports sections don't get garbage collected 2019-02-12 12:46:34 +01:00
fincs
26ac7b3ff2 wutmalloc: Bugfixes, see details:
- Added (dummy) __init/fini_wut_malloc stubs called by wutcrt
  in order to ensure that wutmalloc gets linked in
- malloc/realloc/calloc now properly set errno to ENOMEM during failure
- realloc no longer fails if ptr==NULL (in this case it works
  like a regular malloc)
- realloc no longer does an out of bounds copy if the new size
  is smaller than the old size
- free(NULL) is now supported as per the C standard
- Disabled sbrk/malloc-lock support code in wutnewlib because
  newlib's malloc is replaced with wutmalloc
2019-02-12 12:46:34 +01:00
fincs
ee3bb10df4 First pass at adopting a devkitPro-style build system, see details:
- Added wut_rules and wut/rpx/rpl.specs to share/
- Replaced wut's CMake-based buildsystem with a standard Makefile
- Conflated all wut libraries into a single libwut.a library
- wut's old buildsystems (CMake & plain make) are broken as a result,
  this will be fixed in the future
- Docs, tests and samples are not buildable either at the moment
- wutcrt/wutnewlib:
  - RPX start function is __rpx_start, while RPL is __rpl_start
  - __init/fini_wut_* functions are no longer weak
  - __init_wut/__fini_wut are instead weak
  - Removed _exit implementation
  - exit syscall now points to _Exit instead of pointing to itself
- wutstdc++:
  - Renamed .cc files to .cpp
  - Temporarily disabled, due to an issue that will be addressed shortly
- wutdevoptab:
  - Fixed uninitialized variable warnings in __wut_fs_read/write
2019-02-12 12:46:28 +01:00
James
c86282fd7a
Update README.md
Fix travis badge url.
2019-01-28 18:02:56 +00:00
James
93da85e0df
Update README.md 2019-01-27 14:20:17 +00:00