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

Makefile: Colors work now! #397

Merged
merged 8 commits into from Jan 18, 2018
Merged

Makefile: Colors work now! #397

merged 8 commits into from Jan 18, 2018

Conversation

mithro
Copy link
Member

@mithro mithro commented Jan 18, 2018

No description provided.

If TFTP_SERVER_PORT is set in the environment, TFTP server will be
started on that port; if not, it is started on UDP/69 (well known
TFTP service port) as before.

If TFTP_SERVER_PORT is set in environment during build of litex
BIOS, then TFTP client will try to reach TFTP server on that port
first before falling back to UDP/69.

If TFTP_SERVER_PORT >= 1024 then TFTP server is started as user
without using sudo (otherwise sudo is used as before).

Tested with atftpd; in.tftpd equivalent added but not tested.
Copy link
Member

@rohitk-singh rohitk-singh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works good! Yay!

@rohitk-singh
Copy link
Member

Err....log files now contain the color sequences

@mithro
Copy link
Member Author

mithro commented Jan 18, 2018

@rohitk-singh Is that a problem?

@rohitk-singh
Copy link
Member

@mithro Not really. Just a compromise for much better build output

@mithro
Copy link
Member Author

mithro commented Jan 18, 2018

You can view the logs with less -R and you still get colors :-P

@rohitk-singh
Copy link
Member

@mithro Wow, nice!

ewenmcneill and others added 3 commits January 18, 2018 16:13
This also removes the "sudo which atftpd" command to avoid running
sudo just to find out where TFTP server is; instead we try "which atftpd"
(as user, not root), and then fall back to /usr/sbin/atftpd
TFTP: Support alternate TFTP Server Port
@mithro mithro merged commit ce63d43 into timvideos:master Jan 18, 2018
@mithro mithro deleted the fix-colors branch January 18, 2018 05:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants