Changeset 445 for trunk/user/ksh


Ignore:
Timestamp:
May 29, 2018, 9:27:23 AM (7 years ago)
Author:
alain
Message:

Restructure the mini_libc.

Location:
trunk/user/ksh
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/user/ksh/Makefile

    r444 r445  
    11#########################################################################
    2 # Makefile for the ALMOS-MKH "ksh" application
     2#     Makefile for the "ksh" application                                #
    33#########################################################################
    44
    55-include ../../params-soft.mk
     6
    67ifeq ($(ARCH_NAME),)
    78$(error Please define in ARCH_NAME parameter in params-soft.mk!)
     
    1011OBJS = build/ksh.o
    1112
    12 INCLUDES = -I. -I$(LIBC_INCLUDE) -I$(LIBPTHREAD_INCLUDE) -I$(LIBALMOSMKH_INCLUDE) -I$(SHARED_INCLUDE)
     13INCLUDES = -I.                      \
     14           -I$(LIBC_INCLUDE)        \
     15           -I$(LIBPTHREAD_INCLUDE)  \
     16           -I$(LIBALMOSMKH_INCLUDE) \
     17           -I$(SHARED_INCLUDE)
    1318
    1419compile: dirs build/ksh.elf
     20
    1521build/ksh.elf : $(OBJS) ksh.ld
    16         $(LD) -o $@ -T ksh.ld $(OBJS) -nostdlib -L$(LIBC) -L$(LIBPTHREAD) -L$(LIBALMOSMKH) -lpthread -lc -lalmos-mkh -lc -lpthread -lc
     22        $(LD) -o $@ -T ksh.ld $(OBJS) -L$(LIBC) -L$(LIBPTHREAD) -L$(LIBALMOSMKH) -lc -lpthread -lalmosmkh -lpthread -lc
    1723        $(DU) -D $@ > $@.txt
    1824
  • trunk/user/ksh/ksh.c

    r444 r445  
    1313#include <signal.h>
    1414#include <unistd.h>
    15 #include <almos-mkh.h>
     15#include <almosmkh.h>
    1616
    1717#define CMD_MAX_SIZE   (256)    // max number of characters in one command
     
    320320
    321321        display_chdev();
     322    }
     323    else if( strcmp( argv[1] , "dqdt" ) == 0 )
     324    {
     325        if( argc != 2 )
     326        {
     327                    printf("  usage: display dqdt\n");
     328                    return;
     329            }
     330
     331        display_dqdt();
    322332    }
    323333    else
Note: See TracChangeset for help on using the changeset viewer.