In order to put libcontrollers.a in an appropriate location, s.t. the cpuset, etc tests can properly find it, we need to adjust the Makefile to establish feature parity with the current backend supported in the cpuset Makefiles.
This patch is needed to properly address the cross-compilation issues just posted on the list. This requires PATCH 2/4 and PATCH 3/4 in order to function. Signed-off-by: Garrett Cooper <[email protected]> Index: testcases/kernel/controllers/libcontrollers/Makefile =================================================================== RCS file: /cvsroot/ltp/ltp/testcases/kernel/controllers/libcontrollers/Makefile,v retrieving revision 1.1 diff -u -r1.1 Makefile --- testcases/kernel/controllers/libcontrollers/Makefile 28 Feb 2008 14:50:59 -0000 1.1 +++ testcases/kernel/controllers/libcontrollers/Makefile 7 Jul 2009 05:04:11 -0000 @@ -1,15 +1,38 @@ -TARGET=libcontrollers.a -SRCS=$(wildcard *.c) -OBJS=$(patsubst %.c,%.o,$(SRCS)) +# +# testcases/kernel/controllers library Makefile. +# +# Copyright (C) 2009, Cisco Systems Inc. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +# +# Garrett Cooper, July 2009 +# +# Copyright (c) 2009 by Cisco Systems, Inc. +# All rights reserved +# + +srcdir ?= ../../../.. + +include $(srcdir)/include/master_include.mk + +INSTALL_DIR := $(libdir) -all : $(TARGET) +LIB := lib$(LIBSUFFIX).a -$(TARGET): $(OBJS) - $(AR) -cr $@ $^ - -clean: - rm -f $(TARGET) $(OBJS) - -install: +MAKE_TARGETS := $(LIB) +$(LIB): $(OBJS) +$(eval $(generic_leaf_target)) ------------------------------------------------------------------------------ Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/blackberry _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
