Changeset 36a140b in mainline


Ignore:
Timestamp:
2005-11-08T12:38:52Z (19 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
789b5cc
Parents:
5f85c91
Message:

build system: CONFIG_TEST, CONFIG_USERSPACE

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • Makefile

    r5f85c91 r36a140b  
    6565        DEFS += -DCONFIG_DEBUG_SPINLOCK
    6666endif
     67ifeq ($(CONFIG_USERSPACE),y)
     68        DEFS += -DCONFIG_USERSPACE
     69endif
    6770
    6871## Toolchain configuration
     
    120123        generic/src/fb/font-8x16.c
    121124
     125## Test sources
     126#
     127
     128ifneq ($(CONFIG_TEST),)
     129        DEFS += -DCONFIG_TEST
     130        GENERIC_SOURCES += test/$(CONFIG_TEST)/test.c
     131endif
     132
    122133GENERIC_OBJECTS := $(addsuffix .o,$(basename $(GENERIC_SOURCES)))
    123134ARCH_OBJECTS := $(addsuffix .o,$(basename $(ARCH_SOURCES)))
  • Makefile.config

    r5f85c91 r36a140b  
    2626CONFIG_DEBUG = n
    2727CONFIG_DEBUG_SPINLOCK = y
     28
     29## Run-time configuration directives
     30#
     31# CONFIG_USERSPACE (n/y)
     32#       Enable user space support
     33#
     34# CONFIG_TEST (value)
     35#       Compile in test "value" (empty string for no test)
     36#
     37
     38CONFIG_USERSPACE = n
     39CONFIG_TEST =
     40#CONFIG_TEST = synch/rwlock1/
     41#CONFIG_TEST = synch/rwlock2/
     42#CONFIG_TEST = synch/rwlock3/
     43#CONFIG_TEST = synch/rwlock4/
     44#CONFIG_TEST = synch/rwlock5/
     45#CONFIG_TEST = synch/semaphore1/
     46#CONFIG_TEST = synch/semaphore2/
     47#CONFIG_TEST = fpu/fpu1/
     48#CONFIG_TEST = fpu/sse1/
     49#CONFIG_TEST = fpu/mips1/
     50#CONFIG_TEST = print/print1/
     51#CONFIG_TEST = thread/thread1/
     52#CONFIG_TEST = mm/mapping1/
  • generic/src/main/kinit.c

    r5f85c91 r36a140b  
    5151#include <synch/spinlock.h>
    5252
    53 #ifdef __TEST__
     53#ifdef CONFIG_TEST
    5454#include <test.h>
    55 #endif /* __TEST__ */
     55#endif /* CONFIG_TEST */
    5656
    5757#include <mm/frame.h>
     
    118118        interrupts_enable();
    119119
    120 #ifdef __USERSPACE__
     120#ifdef CONFIG_USERSPACE
    121121        /*
    122122         * Create the first user task.
     
    150150       
    151151        thread_ready(t);
    152 #endif /* __USERSPACE__ */
     152#endif /* CONFIG_USERSPACE */
    153153
    154 #ifdef __TEST__
     154#ifdef CONFIG_TEST
    155155        test();
    156 #endif /* __TEST__ */
     156#endif /* CONFIG_TEST */
    157157
    158158
Note: See TracChangeset for help on using the changeset viewer.