raspberrypi / usbboot

Raspberry Pi USB booting code, moved from tools repository
Apache License 2.0
878 stars 221 forks source link

Install to /usr/local/ for macos #212

Closed shitbread closed 2 months ago

shitbread commented 3 months ago

Macos does not allow modifying /usr unless System Integrity Protection (SIP) is disabled, this workaround fixes make install on stock macos

pelwell commented 3 months ago

I don't think this will be merged, but see #208 and https://github.com/timg236/usbboot/commit/e5ffdac31c2a43ff9a156c1b2017f2f732f7bc2f.

shitbread commented 3 months ago

Ok, currently make install fails on macos because /usr/bin is not writable even by root. Maybe we could add an OS flag?

timg236 commented 2 months ago

With the referenced PR you would do

make INSTALL_PREFIX=/usr/local install

timg236 commented 2 months ago

The Makefile now supports INSTALL_PREFIX if you want to use a non-default install path