aboutsummaryrefslogtreecommitdiffstats
path: root/package/gpioctl
Commit message (Collapse)AuthorAgeFilesLines
* get rid of $Id$ - it has never helped us and it has broken too many patches ;)Felix Fietkau2009-04-171-1/+0
| | | | SVN-Revision: 15242
* more use of the new GPIO_SUPPORT optionNicolas Thill2008-05-021-1/+1
| | | | SVN-Revision: 10998
* Adm5120 also supports generic GPIO, allow gpioctl to be built (#3132)Florian Fainelli2008-04-171-1/+1
| | | | SVN-Revision: 10857
* add gpio support to atheros, fixes #1861, thanks OthelloJohn Crispin2008-04-031-1/+1
| | | | SVN-Revision: 10724
* gpioctl: Allow build on bcm47xxMichael Büsch2008-03-151-1/+1
| | | | SVN-Revision: 10604
* gpioctl get: Fix typo in the printf arguments.Michael Büsch2008-03-151-1/+1
| | | | SVN-Revision: 10603
* this package should only be available for targets with generic gpio support, ↵John Crispin2008-03-071-1/+1
| | | | | | fixes #3132 SVN-Revision: 10564
* Add 2.6 kernel dependency to gpioctlAndy Boyett2008-01-301-1/+2
| | | | SVN-Revision: 10325
* add userspace tool for gpio_devJohn Crispin2008-01-263-0/+143
SVN-Revision: 10267
.highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
#
# Copyright (C) 2007-2010 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
include $(INCLUDE_DIR)/image.mk

JFFS2_BLOCKSIZE=256k

define Image/Prepare
	$(LINUX_DIR)/scripts/dtc/dtc -O dtb -R 4 -S 0x20000 $(LINUX_DIR)/arch/powerpc/boot/dts/canyonlands.dts > $(KDIR)/openwrt-canyonlands.dtb
endef

define Image/BuildKernel
	cp $(KDIR)/uImage $(BIN_DIR)/$(IMG_PREFIX)-uImage
endef

define Image/Build
	$(call Image/Build/$(1),$(1))
endef

define Image/Build/jffs2-256k
	( \
		dd if=$(KDIR)/uImage bs=2048k conv=sync; \
		dd if=$(KDIR)/root.$(1) bs=256k conv=sync; \
	) > $(BIN_DIR)/$(IMG_PREFIX)-jffs2.img
endef

define Image/Build/squashfs
	$(call prepare_generic_squashfs,$(KDIR)/root.squashfs)
	( \
		dd if=$(KDIR)/cuImage.taishan bs=2048k conv=sync; \
		dd if=$(KDIR)/root.$(1) bs=256k conv=sync; \
	) > $(BIN_DIR)/$(IMG_PREFIX)-taishan-$(1).img
	( \
		dd if=$(KDIR)/uImage bs=1920k conv=sync; \
		dd if=$(KDIR)/openwrt-canyonlands.dtb bs=128k conv=sync; \
		dd if=$(KDIR)/root.$(1) bs=256k conv=sync; \
	) > $(BIN_DIR)/$(IMG_PREFIX)-canyonlands-$(1).img
endef

$(eval $(call BuildImage))