# HG changeset patch # User bartv # Date 1028584378 0 # Node ID c0d53837cb682f7023c66145c474a3927cd9cae5 # Parent 3d3a7f481015de84f7bf389f136d28035503e244 Allow configurations which have the kernel but not the memalloc package. diff --git a/packages/kernel/current/ChangeLog b/packages/kernel/current/ChangeLog --- a/packages/kernel/current/ChangeLog +++ b/packages/kernel/current/ChangeLog @@ -1,3 +1,8 @@ +2002-08-05 Bart Veer + + * cdl/kernel.cdl, include/kapidata.h, include/kapi.h: + Allow configurations with the kernel but no malloc + 2002-06-05 Gary Thomas * include/kapi.h: Fix prototype (to allow builds with net stack). diff --git a/packages/kernel/current/cdl/kernel.cdl b/packages/kernel/current/cdl/kernel.cdl --- a/packages/kernel/current/cdl/kernel.cdl +++ b/packages/kernel/current/cdl/kernel.cdl @@ -258,8 +258,6 @@ cdl_package CYGPKG_KERNEL { cdl_option CYGFUN_KERNEL_API_C { display "Provide C API" default_value 1 - requires CYGPKG_MEMALLOC - requires CYGFUN_MEMALLOC_KAPI description " The eCos kernel is implemented in C++, but there is an optional C API for use by application code. This C API can be diff --git a/packages/kernel/current/include/kapi.h b/packages/kernel/current/include/kapi.h --- a/packages/kernel/current/include/kapi.h +++ b/packages/kernel/current/include/kapi.h @@ -11,6 +11,7 @@ //####ECOSGPLCOPYRIGHTBEGIN#### // ------------------------------------------- // This file is part of eCos, the Embedded Configurable Operating System. +// Copyright (C) 2002 Bart Veer // Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc. // // eCos is free software; you can redistribute it and/or modify it under @@ -56,6 +57,7 @@ // //========================================================================*/ +#include #include #ifdef CYGFUN_KERNEL_API_C @@ -479,7 +481,9 @@ cyg_bool_t cyg_mbox_waiting_to_put(cyg_h /* These definitions are found in the "memalloc" package as this is */ /* where the implementation lives. */ -#include +#ifdef CYGPKG_MEMALLOC +# include +#endif /*---------------------------------------------------------------------------*/ /* Semaphores */ diff --git a/packages/kernel/current/include/kapidata.h b/packages/kernel/current/include/kapidata.h --- a/packages/kernel/current/include/kapidata.h +++ b/packages/kernel/current/include/kapidata.h @@ -11,6 +11,7 @@ //####ECOSGPLCOPYRIGHTBEGIN#### // ------------------------------------------- // This file is part of eCos, the Embedded Configurable Operating System. +// Copyright (C) 2002 Bart Veer // Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc. // // eCos is free software; you can redistribute it and/or modify it under @@ -60,6 +61,7 @@ // //==========================================================================*/ +#include #include #include @@ -511,7 +513,9 @@ struct cyg_spinlock_t /* Memory allocator types now come from the "memalloc" package which is */ /* where the implementation lives. */ -#include +#ifdef CYGPKG_MEMALLOC +# include +#endif #ifdef __cplusplus }