summaryrefslogtreecommitdiff
path: root/target/device/Soekris/soekris_gpio
diff options
context:
space:
mode:
Diffstat (limited to 'target/device/Soekris/soekris_gpio')
-rw-r--r--target/device/Soekris/soekris_gpio/Makefile43
-rw-r--r--target/device/Soekris/soekris_gpio/soekris_gpio.mk67
2 files changed, 0 insertions, 110 deletions
diff --git a/target/device/Soekris/soekris_gpio/Makefile b/target/device/Soekris/soekris_gpio/Makefile
deleted file mode 100644
index ac31bbfee..000000000
--- a/target/device/Soekris/soekris_gpio/Makefile
+++ /dev/null
@@ -1,43 +0,0 @@
-#
-# This Makefile is based on the one distributed with the soekris gpio drivers.
-# It is modified to work within buildroot.
-#
-
-include $(LINUX_KCONFIG)
-
-CFLAGS =-O2 -DMODULE -D__KERNEL__ -I$(LINUX_SOURCE_DIR)/include -Wall
-TARGET := gpio
-
-ifdef CONFIG_SMP
- CFLAGS +=-D__SMP__-DSMP
-endif
-
-all: gpio.o writelcd.o
-
-gpio.o: common.o 4501driver.o 4801driver.o
- $(LD) -r 4501driver.o 4801driver.o common.o -o gpio.o
-
-4501gpio.o: common.o 4501driver.o
- $(LD) -r 4501driver.o common.o -o 4501gpio.o
-
-4501driver.o: 4501driver.c 4501driver.h
- $(CC) $(CFLAGS) -c 4501driver.c -o 4501driver.o
-
-4801gpio.o: common.o 4801driver.o
- $(LD) -r 4801driver.o common.o -o 4801gpio.o
-
-4801driver.o: 4801driver.c 4801driver.h
- $(CC) $(CFLAGS) -c 4801driver.c -o 4801driver.o
-
-writelcd.o: common_writelcd.o 4801driver.o 4501driver.o
- $(LD) -r 4801driver.o 4501driver.o common_writelcd.o -o writelcd.o
-
-common.o: common.c common.h
- $(CC) $(CFLAGS) -c common.c -o common.o
-
-common_writelcd.o: common_writelcd.c common.h
- $(CC) $(CFLAGS) -c common_writelcd.c -o common_writelcd.o
-
-clean:
- rm -f *.o *~ core
-
diff --git a/target/device/Soekris/soekris_gpio/soekris_gpio.mk b/target/device/Soekris/soekris_gpio/soekris_gpio.mk
deleted file mode 100644
index 9690a4978..000000000
--- a/target/device/Soekris/soekris_gpio/soekris_gpio.mk
+++ /dev/null
@@ -1,67 +0,0 @@
-#############################################################
-#
-# Soekris gpio, led and temp sensor driver
-#
-#############################################################
-# Copyright (C) 2005 by John D. Blair <jdb@moship.net>
-# Copyright (C) 2001-2003 by Erik Andersen <andersen@codepoet.org>
-# Copyright (C) 2002 by Tim Riker <Tim@Rikers.org>
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU Library 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
-# Library General Public License for more details.
-#
-# You should have received a copy of the GNU Library General Public
-# License along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
-# USA
-
-SOEKRIS_GPIO_VER:=1.3.2
-SOEKRIS_GPIO_DIR:=$(BUILD_DIR)/gpio-$(SOEKRIS_GPIO_VER)
-SOEKRIS_GPIO_SITE:=http://soekris.hejl.de
-SOEKRIS_GPIO_SOURCE:=gpio-$(SOEKRIS_GPIO_VER).tar.gz
-SOEKRIS_GPIO_CAT:=$(ZCAT)
-SOEKRIS_GPIO_MODULE_DIR=lib/modules/$(LINUX_VERSION)/kernel/drivers/soekris/
-
-$(DL_DIR)/$(SOEKRIS_GPIO_SOURCE):
- $(call DOWNLOAD,$(SOEKRIS_GPIO_SITE),$(SOEKRIS_GPIO_SOURCE))
-
-soekris_gpio-source: $(DL_DIR)/$(SOEKRIS_GPIO_SOURCE)
-
-$(SOEKRIS_GPIO_DIR)/.unpacked: $(DL_DIR)/$(SOEKRIS_GPIO_SOURCE)
- $(SOEKRIS_GPIO_CAT) $(DL_DIR)/$(SOEKRIS_GPIO_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
- touch $(SOEKRIS_GPIO_DIR)/.unpacked
-
-$(SOEKRIS_GPIO_DIR)/.compiled: $(SOEKRIS_GPIO_DIR)/.unpacked $(LINUX_KERNEL)
- # overwrite distributed Makefile
- cp target/device/Soekris/soekris_gpio/Makefile $(SOEKRIS_GPIO_DIR)
- LINUX_SOURCE_DIR=$(LINUX_SOURCE_DIR) \
- LINUX_KCONFIG=../../$(LINUX_KCONFIG) \
- CC=$(TARGET_CC) \
- LD=$(TARGET_CROSS)ld \
- $(MAKE) -C $(SOEKRIS_GPIO_DIR)
- touch $(SOEKRIS_GPIO_DIR)/.compiled
-
-# 4801driver.o is used as shorthand for all the modules
-$(TARGET_DIR)/$(SOEKRIS_GPIO_MODULE_DIR)/4801driver.o: $(SOEKRIS_GPIO_DIR)/.compiled
- mkdir -p $(TARGET_DIR)/$(SOEKRIS_GPIO_MODULE_DIR)
- cp $(SOEKRIS_GPIO_DIR)/4501driver.o $(TARGET_DIR)/$(SOEKRIS_GPIO_MODULE_DIR)
- cp $(SOEKRIS_GPIO_DIR)/4801driver.o $(TARGET_DIR)/$(SOEKRIS_GPIO_MODULE_DIR)
- cp $(SOEKRIS_GPIO_DIR)/common.o $(TARGET_DIR)/$(SOEKRIS_GPIO_MODULE_DIR)
- cp $(SOEKRIS_GPIO_DIR)/gpio.o $(TARGET_DIR)/$(SOEKRIS_GPIO_MODULE_DIR)
- # rebuild the modules.dep file so it includes the soekris drivers
- /sbin/depmod -r -a -b $(TARGET_DIR) -F $(LINUX_DIR)/System.map $(LINUX_VERSION)
-
-soekris_gpio: $(TARGET_DIR)/$(SOEKRIS_GPIO_MODULE_DIR)/4801driver.o
-
-soekris_gpio-clean:
- -$(MAKE) -C $(SOEKRIS_GPIO_DIR) clean
-
-soekris_gpio-dirclean:
- rm -rf $(SOEKRIS_GPIO_DIR)