Skip to contentSkip to conversation

package/bitwise: new package

PATCH New Ramon Fried 2 participants 2 messages Jul 6, 2020 – Jul 12, 2020

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 package/bitwise: new package

Bitwise is multi base interactive calculator supporting dynamic base conversion and bit manipulation.
It's a handy tool for low level hackers,
kernel developers and device drivers developers.

---
v3:
* Added hash for COPYING
* Fixed indendation problem in DEVELOPERS
* Fixed missing v in BITWISE_SITE

v2:
* Fixed commit message.
* Added Developers entry
* Fixed "make check-package" errors
* Fixed versioning.

 DEVELOPERS                   |  3 +++
 package/Config.in            |  1 +
 package/bitwise/Config.in    | 11 +++++++++++
 package/bitwise/bitwise.hash |  2 ++
 package/bitwise/bitwise.mk   | 14 ++++++++++++++
 5 files changed, 31 insertions(+)
 create mode 100644 package/bitwise/Config.in
 create mode 100644 package/bitwise/bitwise.hash
 create mode 100644 package/bitwise/bitwise.mk
DEVELOPERS +3 -0
index d67c75033f..ffe6dea2ac 100644
@@ -2132,6 +2132,9 @@ N:	Refik Tuzakli <[email protected]>
 F:	package/freescale-imx/
 F:	package/paho-mqtt-cpp/
 
+N:	Ramon Fried <[email protected]>
+F:	package/bitwise/
+
 N:	Rapha?l M?lotte <[email protected]>
 F:	package/jbig2dec/
 
package/Config.in +1 -0
index 6a34a895af..b4b2a86a67 100644
@@ -148,6 +148,7 @@ endmenu
 menu "Development tools"
 	source "package/bats-core/Config.in"
 	source "package/binutils/Config.in"
+	source "package/bitwise/Config.in"
 	source "package/bsdiff/Config.in"
 	source "package/bustle/Config.in"
 	source "package/check/Config.in"
package/bitwise/Config.in new file +11 -0
new file mode 100644
index 0000000000..e955da374b
@@ -0,0 +1,11 @@
+config BR2_PACKAGE_BITWISE
+	bool "bitwise"
+	select BR2_PACKAGE_NCURSES
+	select BR2_PACKAGE_READLINE
+	help
+	  Bitwise is multi base interactive calculator
+	  supporting dynamic base conversion and bit manipulation.
+	  It's a handy tool for low level hackers,
+	  kernel developers and device drivers developers.
+
+	  https://github.com/mellowcandle/bitwise
package/bitwise/bitwise.hash new file +2 -0
new file mode 100644
index 0000000000..b31b640ecd
@@ -0,0 +1,2 @@
+sha256  33ce934fb99dadf7652224152cc135a0abf6a211adde53d96e9be7067567749c  bitwise-v0.41.tar.gz
+sha256  3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986  COPYING
package/bitwise/bitwise.mk new file +14 -0
new file mode 100644
index 0000000000..2ef183c1a0
@@ -0,0 +1,14 @@
+################################################################################
+#
+# bitwise
+#
+################################################################################
+
+BITWISE_VERSION = 0.41
+BITWISE_SITE = https://github.com/mellowcandle/bitwise/releases/download/v$(BITWISE_VERSION)
+BITWISE_SOURCE = bitwise-v$(BITWISE_VERSION).tar.gz
+BITWISE_DEPENDENCIES = ncurses readline
+BITWISE_LICENSE = GPL-2.0
+BITWISE_LICENSE_FILES = COPYING
+
+$(eval $(autotools-package))
Signature · 1 line
2.27.0
#1 lore raw

PATCH v3 1/1 package/bitwise: new package

Shalom Ramon,

Quoted 6 lines · On Mon, 6 Jul 2020 12:37:43 +0300 Ramon Fried <[email protected]> wrote:

Bitwise is multi base interactive calculator supporting dynamic base conversion and bit manipulation.
It's a handy tool for low level hackers,
kernel developers and device drivers developers.

I was not totally sure of the value of this for the target system, this is not normally where you would need a tool like this. But OK, that's a simple package, so why not. I've applied after doing some changes, see below.

package/bitwise/bitwise.hash

Quoted 6 lines
package/bitwise/bitwise.hash new file +0 -0
new file mode 100644
index 0000000000..b31b640ecd
@@ -0,0 +1,2 @@

We normally put a comment that says where the hash comes from. When it was simply calculated locally, we add:

# Locally calculated

so I just did this.

Quoted 9 lines
package/bitwise/bitwise.hash new file +2 -0
+sha256  33ce934fb99dadf7652224152cc135a0abf6a211adde53d96e9be7067567749c  bitwise-v0.41.tar.gz
+sha256  3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986  COPYING
package/bitwise/bitwise.mk new file +1 -0
new file mode 100644
index 0000000000..2ef183c1a0
@@ -0,0 +1,14 @@
+################################################################################

package/bitwise/bitwise.mk line 11

Quoted 10 lines
package/bitwise/bitwise.mk new file +10 -0
+#
+# bitwise
+#
+################################################################################
+
+BITWISE_VERSION = 0.41
+BITWISE_SITE = https://github.com/mellowcandle/bitwise/releases/download/v$(BITWISE_VERSION)
+BITWISE_SOURCE = bitwise-v$(BITWISE_VERSION).tar.gz
+BITWISE_DEPENDENCIES = ncurses readline
+BITWISE_LICENSE = GPL-2.0

Well, this is your project, and your COPYING file says it's under GPL-3.0, so I changed this value as well.

Applied with those two changes. Toda!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com