added my Recipes
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
SUMMARY = "Bitwise terminal calculator"
|
||||
DESCRIPTION = "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."
|
||||
|
||||
HOMEPAGE = "https://github.com/mellowcandle/bitwise"
|
||||
SECTION = "console/utils"
|
||||
|
||||
LICENSE = "GPL-3.0-only"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=1ebbd3e34237af26da5dc08a4e440464"
|
||||
|
||||
SRC_URI = "https://github.com/mellowcandle/bitwise/releases/download/v${PV}/bitwise-v${PV}.tar.gz \
|
||||
file://0001-makefile.am-Fix-build-when-build-dir-is-not-same-as-.patch \
|
||||
file://run-ptest \
|
||||
file://ptest.out.expected \
|
||||
"
|
||||
SRC_URI[sha256sum] = "f524f794188a10defc4df673d8cf0b3739f93e58e93aff0cdb8a99fbdcca2ffb"
|
||||
|
||||
UPSTREAM_CHECK_URI = "https://github.com/mellowcandle/bitwise/releases"
|
||||
|
||||
S = "${WORKDIR}/${BPN}-v${PV}"
|
||||
|
||||
DEPENDS = "ncurses readline"
|
||||
|
||||
inherit autotools ptest
|
||||
|
||||
do_install_ptest() {
|
||||
install -d ${D}${PTEST_PATH}
|
||||
install -m 0644 ${WORKDIR}/ptest.out.expected ${D}${PTEST_PATH}/ptest.out.expected
|
||||
}
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
From 2089b514045d2de64a5d9c54e241731e85d77df2 Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Mon, 14 Dec 2020 22:11:59 -0800
|
||||
Subject: [PATCH] makefile.am: Fix build when build dir is not same as
|
||||
sourcedir
|
||||
|
||||
This ensures right include paths are added to compiler
|
||||
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
Makefile.am | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/Makefile.am b/Makefile.am
|
||||
index eba85a1..da998ff 100644
|
||||
--- a/Makefile.am
|
||||
+++ b/Makefile.am
|
||||
@@ -19,7 +19,7 @@ if COND_DEBUG
|
||||
MAYBE_DEBUG=-g -O0
|
||||
endif
|
||||
|
||||
-AM_CFLAGS = $(MAYBE_COVERAGE) $(MAYBE_DEBUG) $(MAYBE_TRACE)
|
||||
+AM_CFLAGS = $(MAYBE_COVERAGE) $(MAYBE_DEBUG) $(MAYBE_TRACE) -I$(srcdir)/inc
|
||||
|
||||
check_PROGRAMS = tests/test-shunting-yard
|
||||
tests_test_shunting_yard_SOURCES = src/shunting-yard.c inc/shunting-yard.h \
|
||||
--
|
||||
2.29.2
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
Unsigned decimal: 66
|
||||
Signed decimal: 66
|
||||
Hexadecimal: 0x42
|
||||
Octal: 0102
|
||||
Human: 66
|
||||
Radix64: 0/
|
||||
IPv4 (Network byte order - Big): 66.0.0.0
|
||||
IPv4 (Reverwsed byte order - Little): 0.0.0.66
|
||||
ASCII: .......B
|
||||
Binary:
|
||||
0 1 0 0 0 0 1 0
|
||||
7 - 0
|
||||
|
||||
11
meta-openembedded/meta-oe/recipes-extended/bitwise/files/run-ptest
Executable file
11
meta-openembedded/meta-oe/recipes-extended/bitwise/files/run-ptest
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Test 1: Basic bitwise operation
|
||||
bitwise --no-color -w b 0x42 > test.out
|
||||
|
||||
# Compare expected output with actual output
|
||||
|
||||
if ! cmp test.out ptest.out.expected; then
|
||||
echo "[FAIL] Test 1: Basic bitwise operation"
|
||||
exit 1
|
||||
fi
|
||||
Reference in New Issue
Block a user