Getting started Task completed

Gedare Bloom gedare at rtems.org
Thu Mar 7 04:41:59 UTC 2024


Hi Ashish Baghel,

On Wed, Mar 6, 2024 at 6:30 AM ashish ashish <ashishashish7440 at gmail.com> wrote:
>
> Hello all, This is Ashish Baghel email: ashishashish7440 at gmail.com pursuing computer science and engineering and this is my patch for getting started task
>
> "hello.c"

I see you are copying the contents of the files into your email. This
is not the intended product as described in
https://docs.rtems.org/branches/master/user/start/gsoc.html#creating-and-sending-patches

If you're not sure how to use git and create patches, then I would
suggest you follow some online tutorials. This one looks to be
instructive: https://git-scm.com/docs/gittutorial

Gedare

> #include <rtems.h>
> #include <stdlib.h>
> #include <stdio.h>
>
> rtems_task Init(
>   rtems_task_argument ignored
> )
> {
>   printf( "\nHello World from core of my heart\n" );
>   exit( 0 );
> }
>
> "init.c"
> #define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
> #define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
>
> #define CONFIGURE_UNLIMITED_OBJECTS
> #define CONFIGURE_UNIFIED_WORK_AREAS
>
> #define CONFIGURE_RTEMS_INIT_TASKS_TABLE
>
> #define CONFIGURE_INIT
>
> #include <rtems/confdefs.h>
>
> "wscript"
> from __future__ import print_function
>
> rtems_version = "6"
>
> try:
>     import rtems_waf.rtems as rtems
> except:
>     print('error: no rtems_waf git submodule')
>     import sys
>     sys.exit(1)
>
> def init(ctx):
>     rtems.init(ctx, version = rtems_version, long_commands = True)
>
> def bsp_configure(conf, arch_bsp):
>     # Add BSP specific configuration checks
>     pass
>
> def options(opt):
>     rtems.options(opt)
>
> def configure(conf):
>     rtems.configure(conf, bsp_configure = bsp_configure)
>
> def build(bld):
>     rtems.build(bld)
>
>     bld(features = 'c cprogram',
>         target = 'hello.exe',
>         cflags = '-g -O2',
>         source = ['hello.c',
>                   'init.c'])
>
>


More information about the devel mailing list