Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a Dockerfile for easy building from macOS #16

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kit-ty-kate
Copy link
Contributor

Currently the installer doesn’t build from macOS anymore, so here is a dockerfile to easily give this option

Signed-off-by: Kate <kit.ty.kate@disroot.org>
@andy9a9
Copy link
Contributor

andy9a9 commented Mar 1, 2022

Do you have some kind of error, why is not possible to build it from OSX?

@kit-ty-kate
Copy link
Contributor Author

$ ./build.sh
Updating submodules...
Downloading installer components...
--2022-03-01 19:00:37--  https://www.python.org/ftp/python/3.9.6/python-3.9.6-macos11.pkg
Resolving www.python.org (www.python.org)... 2a04:4e42:f::223, 151.101.60.223
Connecting to www.python.org (www.python.org)|2a04:4e42:f::223|:443... connected.
HTTP request sent, awaiting response... 416 Range Not Satisfiable

    The file is already fully retrieved; nothing to do.

Building m1n1...
INFO: Building on Darwin
INFO: Toolchain path: /opt/homebrew/opt/llvm/bin/
Building u-boot...
Makefile:40: *** missing separator.  Stop.

(on top of other more minor issues and hard to deal with dependencies, e.g. 7zip)

@andy9a9
Copy link
Contributor

andy9a9 commented Mar 1, 2022

I see the problem... CROSS_COMPILE=aarch64-linux-gnu- and u-boot has undefine MK_ARCH which is trying to undefine the non-existing aarch64-linux-gnu variable. So I'm not sure, how far is it for native compilation.

@marcan marcan force-pushed the main branch 2 times, most recently from 93011fc to 8f6e5ab Compare July 11, 2022 14:33
@marcan marcan force-pushed the main branch 2 times, most recently from f7abb88 to 04c037a Compare June 6, 2023 09:05
@samip5
Copy link

samip5 commented Jul 24, 2024

The takeaway here should be related to:

Makefile:40: *** missing separator.  Stop.

Which suggets an out-of-date make.

@kit-ty-kate Please provide your make version on MacOS.

@kit-ty-kate
Copy link
Contributor Author

@kit-ty-kate Please provide your make version on MacOS.

macOS provides GNU Make 3.81 (https://github.com/apple-oss-distributions/gnumake), but if it was just that it would be fine. The other dependencies are more annoying to get from what i remember (although this PR is really old at this point so feel free to close it if you don't think it's relevant anymore)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants