-
Notifications
You must be signed in to change notification settings - Fork 3.9k
utils: add ipq-art-editor #29181
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
gvvsnrnaveen
wants to merge
8
commits into
openwrt:master
Choose a base branch
from
gvvsnrnaveen:ipq-art-editor
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
utils: add ipq-art-editor #29181
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
584997b
utils: add ipq-art-editor
gvvsnrnaveen ff205ec
Adding URL in the package description
gvvsnrnaveen 0dde053
Update utils/ipq-art-editor/Makefile
gvvsnrnaveen 69e7a70
Update utils/ipq-art-editor/Makefile
gvvsnrnaveen 2173145
Merge branch 'master' into ipq-art-editor
gvvsnrnaveen 9b6db21
Adding PKG_JOBS variable and CFLAGS +=
gvvsnrnaveen cfd76e0
Merge branch 'master' into ipq-art-editor
gvvsnrnaveen 018fae4
Merge branch 'master' into ipq-art-editor
gvvsnrnaveen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,45 @@ | ||
| include $(TOPDIR)/rules.mk | ||
|
|
||
| PKG_NAME:=ipq-art-editor | ||
| PKG_VERSION:=1.0.1 | ||
| PKG_RELEASE:=1 | ||
|
|
||
| PKG_SOURCE:=$(PKG_VERSION).tar.gz | ||
| PKG_SOURCE_URL:=https://github.com/gvvsnrnaveen/ipq-art-editor/archive/refs/tags/ | ||
| PKG_HASH:=a6cb8191f9f06c7538c5ee7328c850a8ecd085573460e1afeae4e3b82f7b559e | ||
| PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) | ||
|
|
||
| PKG_LICENSE:=GPL-3.0-only | ||
| PKG_LICENSE_FILES:=LICENSE | ||
| PKG_MAINTAINER:=G. Naveen Kumar <naveenkumar.gvvsnr@gmail.com> | ||
|
|
||
| include $(INCLUDE_DIR)/package.mk | ||
|
|
||
| define Package/ipq-art-editor | ||
| SECTION:=utils | ||
| CATEGORY:=Utilities | ||
| TITLE:=IPQ ART partition editor utility | ||
|
gvvsnrnaveen marked this conversation as resolved.
|
||
| URL:=https://github.com/gvvsnrnaveen/ipq-art-editor | ||
| endef | ||
|
|
||
| define Package/ipq-art-editor/description | ||
| Utility to update MAC addresses, customer data, and raw bytes in | ||
| Qualcomm IPQ ART partitions/files and recalculate ART checksum. | ||
| Supports IPQ60xx and IPQ80xx platforms. | ||
| endef | ||
|
|
||
| TARGET_CFLAGS += -Wall -Wextra | ||
|
|
||
| define Build/Compile | ||
| $(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR)/src \ | ||
| $(TARGET_CONFIGURE_OPTS) \ | ||
| CFLAGS+=" $(TARGET_CFLAGS)" \ | ||
| LDFLAGS="$(TARGET_LDFLAGS)" | ||
| endef | ||
|
|
||
| define Package/ipq-art-editor/install | ||
| $(INSTALL_DIR) $(1)/usr/sbin | ||
| $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/ipq_art_editor $(1)/usr/sbin/ipq-art-editor | ||
| endef | ||
|
|
||
| $(eval $(call BuildPackage,ipq-art-editor)) | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using only the version as
PKG_SOURCErisks filename collisions in the shared download cache (dl/) with other packages that may also use1.0.1.tar.gz. Prefer a unique tarball name likeipq-art-editor-$(PKG_VERSION).tar.gz(and, if needed, setPKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)/ rely on defaultPKG_BUILD_DIR) to keep downloads deterministic across the build system.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why this was resolved, when Copilot is right?