Coder Social home page Coder Social logo

Comments (4)

lvntky avatar lvntky commented on September 18, 2024

Hi @vvaltchev, I surround the print_banner_line() and show_tilck_logo() with the #if KERNEL_SHOW_LOGO and #endif. I build the tilck and run on qemu also build and test with gtests, didn't occure with any error. Also I tinker with mod_console.h a bit, I changed the #define KERNEL_SHOW_LOGO 1 to 0(for checking the #if KERNEL_SHOW_LOGO works on misc.c) and GCC gives error for show_hello_message() because show_hello_message needs show_tilck_logo(); and show_tilck_logo(); did not implemented because i set the KERNEL_SHOW_LOGO 0 on the mod_console.h , so I think it works. I dind't open up a pull request because I wanted to say it to you first and be sure I didn't do anything wrong :)

PS: I set back the #define KERNEL_SHOW_LOGO 1 as default after the test

from tilck.

vvaltchev avatar vvaltchev commented on September 18, 2024

Hello @lvntky, thanks for working on that. Sure, your plans sounds OK. The change should consist just in adding an #ifdef + an #endif. But, if you wanna check if everything compiles properly in both cases (which is necessary), touching mod_console.h is not the right thing to do. (Also note: there are two mod_console.h files: the template one in config and the automatically generated one in a subdirectory of the build directory.)

You should install cmake-curses-gui and then run ccmake build. That tool has a simple curses UI which will allow you to re-configure the Tilck compile-time options. Toggle the KERNEL_SHOW_LOGO option from ON to OFF, press c to re-configure and then g to re-generate the makefiles and the other objects like the generated headers (including mod_console.h). After that, run a build with make. Check that the build passes when the option is ON as well as when the option is OFF. If the build fails in case the KERNEL_SHOW_LOGO is OFF, you should figure out a way to fix it. It should be super trivial in any case.

Sorry for now responding quickly, but as I said, I'm currently on vacation with very limited internet connection and time. I guess this should be enough for you to prepare the change and open a pull request. I'll review it as soon as I come back at the end of the week.

from tilck.

lvntky avatar lvntky commented on September 18, 2024

hi @vvaltchev , thank you for these great information, I will prepare a pull request in light of this information.
Yes I know you are on vacation, I hope you're having a good one :) See you after the vacation

from tilck.

vvaltchev avatar vvaltchev commented on September 18, 2024

This issue has been fixed by pull request #126

from tilck.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.